changeset 427:9d2e1009076a

fix for fedora 18
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 May 2013 12:51:39 +0200
parents 53d79c963e4a
children 6f00823be12a
files OrthancServer/OrthancInitialization.cpp
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Wed May 08 12:16:18 2013 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Wed May 08 12:51:39 2013 +0200
@@ -283,7 +283,17 @@
   std::string InterpretStringParameterAsPath(const std::string& parameter)
   {
     boost::mutex::scoped_lock lock(globalMutex_);
-    return (defaultDirectory_ / parameter).string();
+
+    boost::filesystem::path p(parameter);
+
+    if (p.is_absolute())
+    {
+      return p.string();
+    }
+    else
+    {
+      return (defaultDirectory_ / parameter).string();
+    }
   }