<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">It might be something in mod python. Try asking on their mailing list.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Victor Subervi <victorsubervi@gmail.com><br>To: Ben Kaplan <bskaplan14@yahoo.com><br>Cc: python-list@python.org<br>Sent: Thursday, April 17, 2008 10:47:34 AM<br>Subject: Re: Importing My Own Script<br><br>
<div class="gmail_quote">On Thu, Apr 17, 2008 at 8:52 AM, Ben Kaplan <<a rel="nofollow" ymailto="mailto:bskaplan14@yahoo.com" target="_blank" href="mailto:bskaplan14@yahoo.com">bskaplan14@yahoo.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">If x and y are in the same directory, just do "import x". If not, add the directory containing x to sys.path. Then, "import x" should work. </div>
</div></div></blockquote>
<div> </div>
<div>Well, now thatīs what I thought! But no, it doesnīt work! Both scripts are in the same folder. Hereīs the error:</div>
<div> </div>
<div>[Thu Apr 17 07:45:50 2008] [error] [client <a rel="nofollow" target="_blank"  href="http://190.166.0.245">190.166.0.245</a>] PythonHandler mod_python.cgihandler: File "/var/www/vhosts/<a rel="nofollow" target="_blank" href="http://livestocksling.com/httpdocs/bre/test.py">livestocksling.com/httpdocs/bre/test.py</a>", line 3, in ?\n import test2 <br>
[Thu Apr 17 07:45:50 2008] [error] [client <a rel="nofollow" target="_blank"  href="http://190.166.0.245">190.166.0.245</a>] PythonHandler mod_python.cgihandler: ImportError: No module named test2 <br></div>
<div>Iīm running through Plesk, if that makes a difference.</div>
<div>TIA,</div>
<div>Victor</div>
<div> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><span id=""></span>
<div>
<div></div>
<div class="Wj3C7c"><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">----- Original Message ----<br>From: Victor Subervi <<a rel="nofollow" ymailto="mailto:victorsubervi@gmail.com" target="_blank" href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>><br>
To: <a rel="nofollow" ymailto="mailto:python-list@python.org" target="_blank" href="mailto:python-list@python.org">python-list@python.org</a><br>Sent: Thursday, April 17, 2008 9:45:10 AM<br>Subject: Importing My Own Script<br><br>
<div>Hi:</div>
<div>How do I import my own script from a second script? That is, I have script x and I want to import script y. How?</div>
<div>TIA,</div>
<div>Victor</div></div><br></div></div></div></div>
<div class="WgoR0d"><br>
<hr size="1">
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ">Try it now.</a></div></div></blockquote>
</div><br>
</div><br></div></div><br>

      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>