pyUpload/start.pyw
Adam Skotarczak (Linux-Workstation) 17353b3000 v1.2.1
- Test auf Linux Workstation
  - Siehe CHANGELOG.md
2025-05-07 19:16:10 +02:00

18 lines
567 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
import os
import sys
import subprocess
os.chdir(os.path.dirname(__file__))
# Zielpfad zur venv-Python
venv_python = os.path.join("app", ".venv", "Scripts", "python.exe") if os.name == "nt" else os.path.join("app", ".venv", "bin", "python")
# Verwende venv-Python, wenn vorhanden sonst system-Python für initialen Aufbau
python_exec = venv_python if os.path.exists(venv_python) else sys.executable
# Starte main.py
main_script = os.path.abspath(os.path.join("app", "main.py"))
subprocess.run([python_exec, main_script] + sys.argv[1:])