[Python-au] Help!
Paul Sorenson
sosman at users.sourceforge.net
Thu Nov 20 09:03:12 CET 2003
Check out the documentation for execfile() in built-in functions. It should almost be a plug in replacement for exec() but without the overhead of invoking the shell and a new interpreter.
Another approach would be to import the scripts then call the entry point you are interested in. There are some requirements about where imported scripts should reside.
----- Original Message -----
From: Sophie Jarlier
To: python-au at python.net
Sent: Saturday, November 08, 2003 12:40 AM
Subject: [Python-au] Help!
Hi everybody!
Could somebody tell me how to call two python scripts in another python script: for example I created these 2 python scripts: script1.py and script2.py and I tried to code another python script as follow:
python.exec("C:\Temp\script1.py")
python.exec("C:\Temp\script2.py")
What is wrong here?
Thanks in advance for your help.
Sophie
------------------------------------------------------------------------------
_______________________________________________
python-au maillist - python-au at starship.python.net
http://starship.python.net/mailman/listinfo/python-au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://starship.python.net/pipermail/python-au/attachments/20031120/65459a8a/attachment.htm
More information about the python-au
mailing list