Skip to content
Permalink
1eb01e12ac
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (15 sloc) 505 Bytes
import os
import multiprocessing as mp
import subprocess
def start_program(command):
cmd_list = command.split(" ")
return subprocess.call(cmd_list)
def start_program_no_hang(command):
print("Running %s from cwd %s" % (command, os.getcwd()))
proc = mp.Process(target=start_program, args=(command,))
proc.start()
return proc
def main():
start_program_no_hang("start cmd.exe /k \"..\\bin\\Breadcrumbs.exe\"")
if __name__ == "__main__":
main()