Re: the way of "import"

2008-03-09 Thread Gabriel Genellina
En Sat, 08 Mar 2008 00:30:13 -0200, smalltalk <[EMAIL PROTECTED]> escribi�: > I have three files names t1.py,t2.py,t3.py in e:\test\dir1,of course > dir2 is exsit > the content of t1.py as follow: > t1.py > import os > print 'this is t1.py' > os.chdir('..\\dir2') > the content of t2.py as follow

the way of "import"

2008-03-07 Thread smalltalk
I have three files names t1.py,t2.py,t3.py in e:\test\dir1,of course dir2 is exsit the content of t1.py as follow: t1.py import os print 'this is t1.py' os.chdir('..\\dir2') the content of t2.py as follow: print "this is t2.py" the content of t3.py as follow: import t1 import t2 if i run t3.py i