10 #include "../system/FreestyleConfig.h"
11 #include "../system/StringUtils.h"
19 Path *Path::_pInstance =
nullptr;
29 void Path::setRootDir(
const string &iRootDir)
31 _ProjectDir = iRootDir + string(
DIR_SEP) +
"freestyle";
33 _PatternsPath = _ProjectDir + string(
DIR_SEP) +
"data" + string(
DIR_SEP) +
"textures" +
35 _BrushesPath = _ProjectDir + string(
DIR_SEP) +
"data" + string(
DIR_SEP) +
"textures" +
37 _EnvMapDir = _ProjectDir + string(
DIR_SEP) +
"data" + string(
DIR_SEP) +
"env_map" +
42 void Path::setHomeDir(
const string &iHomeDir)
57 string Path::getEnvVar(
const string &iEnvVarName)
60 if (!getenv(iEnvVarName.c_str())) {
61 cerr <<
"Warning: You may want to set the $" << iEnvVarName
62 <<
" environment variable to use Freestyle." << endl
63 <<
" Otherwise, the current directory will be used instead." << endl;
67 value = getenv(iEnvVarName.c_str());
const char * BKE_appdir_folder_id(int folder_id, const char *subfolder)