Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 426:53d79c963e4a
fix for fedora 18
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2013 12:16:18 +0200 |
parents | 63f707278fc8 |
children | c9a5d72f8481 |
comparison
equal
deleted
inserted
replaced
425:26bb4d05a072 | 426:53d79c963e4a |
---|---|
322 if (!isInitialized) | 322 if (!isInitialized) |
323 { | 323 { |
324 OrthancInitialize(); | 324 OrthancInitialize(); |
325 } | 325 } |
326 | 326 |
327 boost::filesystem::path storageDirectory = | 327 std::string storageDirectoryStr = GetGlobalStringParameter("StorageDirectory", "OrthancStorage"); |
328 InterpretStringParameterAsPath(GetGlobalStringParameter("StorageDirectory", "OrthancStorage")); | 328 boost::filesystem::path storageDirectory = InterpretStringParameterAsPath(storageDirectoryStr); |
329 boost::filesystem::path indexDirectory = | 329 boost::filesystem::path indexDirectory = |
330 InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectory.string())); | 330 InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectoryStr)); |
331 ServerContext context(storageDirectory, indexDirectory); | 331 ServerContext context(storageDirectory, indexDirectory); |
332 | 332 |
333 LOG(WARNING) << "Storage directory: " << storageDirectory; | 333 LOG(WARNING) << "Storage directory: " << storageDirectory; |
334 LOG(WARNING) << "Index directory: " << indexDirectory; | 334 LOG(WARNING) << "Index directory: " << indexDirectory; |
335 | 335 |