Skip to content

Commit

Permalink
[image] use disabled code instead of commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Oct 17, 2022
1 parent d033678 commit 31b213a
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions src/aliceVision/image/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,28 @@ namespace
}
}

// To be uncommented to take OCIO env var in consideration before using the enbedded config file
//
//char const* OCIO = getenv("OCIO");
//if (OCIO != NULL)
//{
// configOCIOFilePath = std::string(OCIO);
// if (fs::exists(configOCIOFilePath))
// {
// ALICEVISION_LOG_TRACE("OCIO configuration file: '" << configOCIOFilePath << "' found.");
// return configOCIOFilePath;
// }
// else if (configOCIOFilePath == "")
// {
// ALICEVISION_LOG_TRACE("OCIO is empty. Use embedded config...");
// }
// else
// {
// ALICEVISION_LOG_TRACE("OCIO does not point to an existing file. Use embedded config...");
// }
//}
// To be enabled if we decide to take OCIO env var in consideration before using the enbedded config file
if(false)
{
char const* OCIO = std::getenv("OCIO");
if(OCIO != NULL)
{
configOCIOFilePath = std::string(OCIO);
if(fs::exists(configOCIOFilePath))
{
ALICEVISION_LOG_TRACE("OCIO configuration file: '" << configOCIOFilePath << "' found.");
return configOCIOFilePath;
}
else if(configOCIOFilePath == "")
{
ALICEVISION_LOG_TRACE("OCIO is empty. Use embedded config...");
}
else
{
ALICEVISION_LOG_TRACE("OCIO does not point to an existing file. Use embedded config...");
}
}
}

char const* ALICEVISION_ROOT = std::getenv("ALICEVISION_ROOT");
if (ALICEVISION_ROOT == NULL)
Expand Down

0 comments on commit 31b213a

Please sign in to comment.