Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devwiki:python [2019/08/20 21:34]
ying [useful module list]
devwiki:python [2019/08/20 21:45] (current)
ying [useful module list]
Line 786: Line 786:
 subprocess.Popen([r'​D:​\App\Python27\python.exe',​r'​D:​\Dev\Pipeline\PyDesktop\CompFolder\CompFolder.py'​]) subprocess.Popen([r'​D:​\App\Python27\python.exe',​r'​D:​\Dev\Pipeline\PyDesktop\CompFolder\CompFolder.py'​])
 subprocess.Popen([r'​D:​\Dev\Pipeline\PyDesktop\CompFolder\CompFolder.bat'​]) subprocess.Popen([r'​D:​\Dev\Pipeline\PyDesktop\CompFolder\CompFolder.bat'​])
 +# force it to open in new console window instead of inside parent console window
 +subprocess.Popen([r'​D:​\Dev\Pipeline\PyDesktop\CompFolder\CompFolder.bat'​],​ creationflags=subprocess.CREATE_NEW_CONSOLE) ​
  
 # if above method failed because PATH or PYTHONPATH issue, especially when call like above in a mixed python environment like Maya, # if above method failed because PATH or PYTHONPATH issue, especially when call like above in a mixed python environment like Maya,