dll filer

This commit is contained in:
2026-04-24 09:31:03 +02:00
parent 25c2dd9e78
commit 09412073cd
2 changed files with 33 additions and 8 deletions

View File

@@ -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()