Files
Nexus/2023/scripts/animation_tools/mgpicker/MGPicker_Program/AutoSourced/LaunchProcess.py
2025-11-23 23:31:18 +08:00

17 lines
369 B
Python

import subprocess
import os
def MGP_LoadProcess(program, args=[]):
if not program or not os.path.isfile(program):
return False
theArgs = [program]
theArgs.extend(args)
try:
subprocess.Popen(theArgs)
except Exception as e:
print("Error loading program {}: {}".format(program, e.value))
return False
return True