diff options
Diffstat (limited to 'libs/plugin_python')
| -rw-r--r-- | libs/plugin_python/src/proxy/proxypython.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/plugin_python/src/proxy/proxypython.cpp b/libs/plugin_python/src/proxy/proxypython.cpp index af897db..196bf23 100644 --- a/libs/plugin_python/src/proxy/proxypython.cpp +++ b/libs/plugin_python/src/proxy/proxypython.cpp @@ -175,6 +175,16 @@ bool ProxyPython::init(IOrganizer* moInfo) libpath, std::filesystem::path{IOrganizer::getPluginDataPath().toStdWString()}}; + // pluginDataPath() returns a writable directory (plugin_data/) separate + // from the possibly-read-only plugins/data/ that ships bundled assets + // like the DDS module. Add the bundled path too so imports still work. + { + auto bundledData = pluginDataRoot / "data"; + if (fs::is_directory(bundledData)) { + paths.emplace_back(bundledData); + } + } + // Allow portable/AppImage builds to ship Python packages next to the app. // MO2_PYTHON_DIR (set by AppRun) points to the writable python/ dir // next to the AppImage; fall back to <exe_dir>/python. |
