You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if I am at a 'bin' location, then there are chances that I've bee INSTALLED, so all the resources I need can be accessed relatively to this 'bin' directory.
257
-
// if not, then I'm probably just a 'build' gdl and my ressources may (should?) be in the default location GDLDATADIR
258
-
std::size_t pos=whereami.rfind("bin");
259
-
if (pos == whereami.size()-3) { //we are the installed gdl!
// if I am at a 'bin' location, then there are chances that I've been INSTALLED, so all the resources I need can be accessed relatively to this 'bin' directory.
260
+
// if not, then I'm probably just a 'build' gdl and my resources may (should?) be in the default location GDL_DATA_DIR
261
+
auto pos = whereami.rfind("bin");
262
+
if (pos != std::string::npos) { // we are the installed gdl!
263
+
// use pos - 1, so we remove the path separator, too
0 commit comments