Re: How to call function which is in one program ...

2005-12-23 Thread Shahriar Shamil Uulu
Thank you Fredrik Lundh for your help ... it worked ... the problem was in saving of file first.py Fredrik Lundh wrote: > "Shahriar Shamil Uulu" wrote: > > > i got another questions. For example i have two programs in python > > like: first.py, second.py. > > In first.py i have a function test() li

Re: How to call function which is in one program ...

2005-12-20 Thread Kevin Yuan
Another thing to remeber: Make sure the first.py and second.py are locateed in the same directory OR the path of first.py is in *sys.path*. Otherwise you'll get an exception. 2005/12/20, Fredrik Lundh < [EMAIL PROTECTED]>:"Shahriar Shamil Uulu" wrote: > i got another questions. For example i have t

Re: How to call function which is in one program ...

2005-12-20 Thread Fredrik Lundh
"Shahriar Shamil Uulu" wrote: > i got another questions. For example i have two programs in python > like: first.py, second.py. > In first.py i have a function test() like: > # first.py > ... > def test(name): > print name > > so other functions > = > > #second.py

Re: How to call function which is in one program ...

2005-12-20 Thread Kevin Yuan
19 Dec 2005 23:56:04 -0800, Shahriar Shamil Uulu <[EMAIL PROTECTED]>: Dear All,i got another questions. For example i have two programs in pythonlike: first.py, second.py.In first.py i have a function test() like:# first.py...def test(name):  print name so other functions==

How to call function which is in one program ...

2005-12-20 Thread Shahriar Shamil Uulu
Dear All, i got another questions. For example i have two programs in python like: first.py, second.py. In first.py i have a function test() like: # first.py ... def test(name): print name so other functions = #second.py Question is how i can include first.py i