MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / _build_launch_command

Function _build_launch_command

MCSL2Lib/ProgramControllers/startupController.py:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def _build_launch_command() -> str:
26 exe = Path(sys.executable).resolve()
27 if getattr(sys, "frozen", False) or exe.suffix.lower() == ".exe":
28 return f'"{str(exe)}"'
29 script = Path(sys.argv[0]).resolve()
30 if script.exists():
31 return f'"{str(exe)}" "{str(script)}"'
32 return f'"{str(exe)}"'
33
34
35def is_start_on_startup_enabled() -> bool:

Callers 1

set_start_on_startupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected