fix opendir trying to open an example directory instead of DATA_PATH
This commit is contained in:
parent
937444ee94
commit
2e6cd78ecb
@ -24,7 +24,7 @@ std::string getDataPath(std::string subpath)
|
||||
{
|
||||
cached_data_path = std::getenv("CH_DATA_PATH");
|
||||
}
|
||||
else if ((dir = opendir("mydir")))
|
||||
else if ((dir = opendir(DATA_PATH)))
|
||||
{
|
||||
cached_data_path = DATA_PATH;
|
||||
closedir(dir);
|
||||
|
Reference in New Issue
Block a user