![]() Obviously I need the Pipe to retrieve the data I want. I am finding as soon as I introduce the subprocess.PIPE to the mix I get a funky crash. Task = subprocess.Popen(_cmd, cwd=gameRoot, stdout=subprocess.PIPE) #shell=True, GameRoot=os.environ.get("GAME_ROOT") '\ ools\\options' Maya is running within our shell, that is setup via batch at Maya launch. I am running subprocess.Popen() from within a script called within Maya to do this. ![]() I’m trying to use subprocess to gather some information from one of our tools that needs to be run via cmd line within our shell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |