changeset 88:8936a3bbb129

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Sep 2012 17:52:26 +0200
parents 8517e2c44283
children 74156c8b6f00
files OrthancServer/OrthancInitialization.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Wed Sep 26 17:39:03 2012 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Wed Sep 26 17:52:26 2012 +0200
@@ -50,11 +50,11 @@
     else
     {
 #if ORTHANC_STANDALONE == 1 && defined(__linux)
-      // Under Linux, try and open "../etc/orthanc/Configuration.json"
+      // Under Linux, try and open "../../etc/orthanc/Configuration.json"
       try
       {
-        boost::filesystem::path p = ORTHANC_PATH;
-        p = p.parent_path();
+        boost::filesystem::path p = Toolbox::GetDirectoryOfExecutable();
+        p = p.parent_path().parent_path();
         p /= "etc";
         p /= "orthanc";
         p /= CONFIGURATION_FILE;