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:
parent
17d2a17f9e
commit
db2d4c97e8
6 changed files with 34 additions and 7 deletions
2
deps/obs-scripting/obs-scripting-python.c
vendored
2
deps/obs-scripting/obs-scripting-python.c
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue