diff options
| author | dmlunar <root@lunar.sh> | 2025-01-22 16:47:21 +0200 |
|---|---|---|
| committer | dmlunar <root@lunar.sh> | 2025-10-15 23:42:50 +0200 |
| commit | 729f2a2c3ebfb2612d873caf453a1d7ca02180d9 (patch) | |
| tree | 7bab2fcc0c7f50eab3013348697bc06ddd71d551 /scripts/launcher.py | |
| download | varpa-729f2a2c3ebfb2612d873caf453a1d7ca02180d9.tar.gz varpa-729f2a2c3ebfb2612d873caf453a1d7ca02180d9.zip | |
varpa: initial public commit
Diffstat (limited to 'scripts/launcher.py')
| -rw-r--r-- | scripts/launcher.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/launcher.py b/scripts/launcher.py new file mode 100644 index 0000000..fa086a7 --- /dev/null +++ b/scripts/launcher.py @@ -0,0 +1,23 @@ +# Author: Dylan Muller +# Copyright (c) 2025 +# All rights reserved. +# +# - Commercial/IP use prohibited. +# - Attribution required. +# See License.txt + +import subprocess +import time +import ctypes +import os +from setup import * + +def open_fixed_size_cmd(width, height, script_path): + command = f"mode con: cols={width} lines={height} && python.exe {script_path}" + subprocess.Popen(["cmd.exe", "/K", command], creationflags=subprocess.CREATE_NEW_CONSOLE) + +script_path = os.path.abspath(SETUP_STUB_NAME) +print(SETUP_LAUNCHER_NAME + " " + SETUP_LAUNCHER_VER) +open_fixed_size_cmd(width=SETUP_CONSOLE_COL, + height=SETUP_CONSOLE_ROW, + script_path=script_path) |
