MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / mySpawn

Function mySpawn

methods.py:413–426  ·  view source on GitHub ↗
(sh, escape, cmd, args, env)

Source from the content-addressed store, hash-verified

411 return rv
412
413 def mySpawn(sh, escape, cmd, args, env):
414 # Used by TEMPFILE.
415 if cmd == "del":
416 os.remove(args[1])
417 return 0
418
419 newargs = " ".join(args[1:])
420 cmdline = cmd + " " + newargs
421
422 rv = 0
423 env = {str(key): str(value) for key, value in iter(env.items())}
424 rv = mySubProcess(cmdline, env)
425
426 return rv
427
428 self["SPAWN"] = mySpawn
429

Callers

nothing calls this directly

Calls 3

mySubProcessFunction · 0.85
joinMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected