python Programming Glossary: script2.py
keep multiple cmd windows open from batch http://stackoverflow.com/questions/12122535/keep-multiple-cmd-windows-open-from-batch style CPS script. Usage python cps.py script1.py arg1 arg2 script2.py a b c script3.py ... import platform import sys from subprocess.. you could simplify the usage python cps.py script1.py script2.py script3.py Note no between scripts. You need to modify the code..
Run a python script from another python script, passing in args http://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-args a list of values 0 1 2 3 and pass those to the 2nd script script2.py 0 then script2.py 1 etc. I found SO 1186789 which is a similar.. 0 1 2 3 and pass those to the 2nd script script2.py 0 then script2.py 1 etc. I found SO 1186789 which is a similar question but ars's.. this to something like the below as a test execfile script2.py 1 But is is not accept vars properly. When I print out the 'sys.argv'..
|