mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
deps/obs-scripting: Fix installed files/locations on linux
Uses the 'install' command in cmake to install scripting modules/files (such as _obspython.so, obslua.so, and obspython.py), and changes the install location of those files on all operating systems. If using a non-unix structure install, those files will be installed in data/obs-scripting/[32bit/64bit], otherwise with unix structure installs those files will be installed to [/usr/local/lib]/obs-scripting.
This commit is contained in:
+2
@@ -1649,6 +1649,8 @@ bool obs_scripting_load_python(const char *python_path)
|
||||
/* ---------------------------------------------- */
|
||||
/* Load main interface module */
|
||||
|
||||
add_to_python_path(SCRIPT_DIR);
|
||||
|
||||
py_obspython = PyImport_ImportModule("obspython");
|
||||
bool success = !py_error();
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user