dll filer
This commit is contained in:
@@ -8,13 +8,16 @@ Start:
|
||||
import sys
|
||||
import os
|
||||
|
||||
if getattr(sys, 'frozen', False):
|
||||
# Kørende som PyInstaller .exe — sæt VLC sti til app-mappen
|
||||
_app_dir = os.path.dirname(sys.executable)
|
||||
os.environ.setdefault("VLC_PLUGIN_PATH", os.path.join(_app_dir, "plugins"))
|
||||
|
||||
APP_VERSION = "0.9.5"
|
||||
|
||||
# VLC setup — skal ske FØR vlc importeres
|
||||
if getattr(sys, 'frozen', False):
|
||||
_app_dir = os.path.dirname(sys.executable)
|
||||
_libvlc = os.path.join(_app_dir, 'libvlc.dll')
|
||||
if os.path.exists(_libvlc):
|
||||
os.environ['PYTHON_VLC_LIB_PATH'] = _libvlc
|
||||
os.environ['VLC_PLUGIN_PATH'] = os.path.join(_app_dir, 'plugins')
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
|
||||
from app_logger import setup_logging
|
||||
@@ -63,4 +66,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
Reference in New Issue
Block a user