This commit is contained in:
2025-11-30 14:49:16 +08:00
parent 021c593241
commit de46c4b073
1406 changed files with 526774 additions and 1221 deletions

View File

@@ -0,0 +1,16 @@
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