Re: [Tutor] Calling another script

2011-04-04 Thread tee chwee liong
thanks all for your advice. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calling another script

2011-04-04 Thread Alan Gauld
"tee chwee liong" wrote i want one.py to read a configuration file and executes two.py and three.py. if int(operation)== 0: import two else: print "Default" two.py: print "executing script number 2" Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Calling another script

2011-04-04 Thread Steven D'Aprano
On Mon, Apr 04, 2011 at 05:10:50AM +, tee chwee liong wrote: > > hi, > > i opened a cmd DOS prompt to execute one.py. it works to execute codes from > two.py and three.py. yes, you are fight it will not re-execute the module. > is there a way to do it? i want after the python script finish

Re: [Tutor] Calling another script

2011-04-04 Thread Alan Gauld
"tee chwee liong" wrote i want one.py to read a configuration file and executes two.py and three.py. if int(operation)== 0: import two else: print "Default" two.py: print "executing script number 2" Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Calling another script

2011-04-03 Thread tee chwee liong
hi, thanks everyone. i tried sys.exit() inside one.py and it works to return to DOS prompt. thanks tcl From: tc...@hotmail.com To: bgai...@gmail.com; tutor@python.org Date: Mon, 4 Apr 2011 05:10:50 + Subject: Re: [Tutor] Calling another script hi, i opened a cmd DOS prompt to

Re: [Tutor] Calling another script

2011-04-03 Thread tee chwee liong
as >>>. i tried putting sys.exit(). thanks cltee Date: Mon, 4 Apr 2011 00:29:19 -0400 From: bgai...@gmail.com To: tutor@python.org Subject: Re: [Tutor] Calling another script On 4/3/2011 11:58 PM, tee chwee liong wrote: hi, i want to read from a file which will indicate which

Re: [Tutor] Calling another script

2011-04-03 Thread bob gailer
On 4/3/2011 11:58 PM, tee chwee liong wrote: hi, i want to read from a file which will indicate which operation to execute. so i'm using configparser module. i want one.py to read a configuration file and executes two.py and three.py. however, it only executes two.py and not three.py codes. p

[Tutor] Calling another script

2011-04-03 Thread tee chwee liong
hi, i want to read from a file which will indicate which operation to execute. so i'm using configparser module. i want one.py to read a configuration file and executes two.py and three.py. however, it only executes two.py and not three.py codes. pls help advise. thanks tcl +