thanks all for your advice. ___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
"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
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
"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
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
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
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
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
+