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.
----- Original Message ----
From: Victor Subervi <[EMAIL PROTECTED]>
To: python-list@python.org
Sent: Thursday, April 17, 2008 9:45:10 AM
Subject: Importing My Own Script

Hi:
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?
TIA,
Victor






      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to