mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
When running from source, specify via two environment variables where is the vlc library located
This commit is contained in:
parent
ad54134c86
commit
7883413210
@ -42,7 +42,14 @@ if system == "Windows":
|
|||||||
else:
|
else:
|
||||||
sys.stdout=stdout
|
sys.stdout=stdout
|
||||||
sys.stderr=stderr
|
sys.stderr=stderr
|
||||||
#the final log files have been opened succesfully, let's close the temporal files
|
# We are running from source, let's prepare vlc module for that situation
|
||||||
|
if system=="Windows":
|
||||||
|
arch="x86"
|
||||||
|
if platform.architecture()[0][:2] == "64":
|
||||||
|
arch="x64"
|
||||||
|
os.environ['PYTHON_VLC_MODULE_PATH']=paths.app_path("..", "windows-dependencies", arch, "plugins")
|
||||||
|
os.environ['PYTHON_VLC_LIB_PATH']=paths.app_path("..", "windows-dependencies", arch, "libvlc.dll")
|
||||||
|
#the final log files have been opened succesfully, let's close the temporary files
|
||||||
stdout_temp.close()
|
stdout_temp.close()
|
||||||
stderr_temp.close()
|
stderr_temp.close()
|
||||||
#finally, remove the temporal files. TW Blue doesn't need them anymore, and we will get more free space on the harddrive
|
#finally, remove the temporal files. TW Blue doesn't need them anymore, and we will get more free space on the harddrive
|
||||||
|
Loading…
Reference in New Issue
Block a user