# HG changeset patch
# User Sebastien Jodogne <s.jodogne@gmail.com>
# Date 1368011164 -7200
# Node ID 6f00823be12a3985743017876ac0f3986ac401a0
# Parent  9d2e1009076abc530074d12e43bec9832db38521
explanations

diff -r 9d2e1009076a -r 6f00823be12a OrthancServer/OrthancInitialization.cpp
--- a/OrthancServer/OrthancInitialization.cpp	Wed May 08 12:51:39 2013 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Wed May 08 13:06:04 2013 +0200
@@ -284,6 +284,16 @@
   {
     boost::mutex::scoped_lock lock(globalMutex_);
 
+    /**
+       The following lines should be equivalent to this one: 
+
+       return (defaultDirectory_ / parameter).string();
+
+       However, for some unknown reason, some versions of Boost do not
+       make the proper path resolution when "defaultDirectory_" is an
+       absolute path. So, a hack is used below.
+     **/
+
     boost::filesystem::path p(parameter);
 
     if (p.is_absolute())