<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4934.1600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Sophie.Jarlier@miralab.unige.ch
href="mailto:Sophie.Jarlier@miralab.unige.ch">Sophie Jarlier</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=python-au@python.net
href="mailto:python-au@python.net">python-au@python.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, November 08, 2003 12:40
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Python-au] Help!</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi everybody!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>python.exec("C:\Temp\script1.py")</FONT></DIV>
<DIV><FONT face=Arial size=2>python.exec("C:\Temp\script2.py")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What is wrong here?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sophie</DIV></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>python-au
maillist -
python-au@starship.python.net<BR>http://starship.python.net/mailman/listinfo/python-au<BR></BLOCKQUOTE></BODY></HTML>