# HG changeset patch # User Sebastien Jodogne # Date 1348674746 -7200 # Node ID 8936a3bbb129e8d8b5c8f2e22b020cd965453174 # Parent 8517e2c44283eb4ab229ebc61505e2b70ca9ac28 fix diff -r 8517e2c44283 -r 8936a3bbb129 OrthancServer/OrthancInitialization.cpp --- 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;