Skip to content

Commit

Permalink
Set correct script path on Linux
Browse files Browse the repository at this point in the history
Script path is now ApplicationContext::getRuntimeDataPath() + "scripts" on all
platforms, rather than using different logic on Linux. This should work for
both relocatable and non-relocatable builds because getRuntimeDataPath returns
a different value in each case.
  • Loading branch information
Matthew Mott committed Dec 17, 2020
1 parent e649657 commit fbcee94
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/script/ScriptingSystem.cpp
Expand Up @@ -416,11 +416,7 @@ void ScriptingSystem::initialiseModule(const IApplicationContext& ctx)
.connect(sigc::mem_fun(this, &ScriptingSystem::initialise));

// Construct the script path
#if defined(POSIX) && defined(PKGLIBDIR)
_scriptPath = std::string(PKGLIBDIR) + "/scripts/";
#else
_scriptPath = ctx.getRuntimeDataPath() + "scripts/";
#endif

// When Python asks for the object, let's register our interfaces to the py::module
PythonModule::RegisterToPython(
Expand Down

0 comments on commit fbcee94

Please sign in to comment.