How to call a function defined in another py file

Jeremy Gransden jeremy at gransdenonline.com
Mon Feb 19 15:37:41 EST 2007


from a import test


be sure a is in your path.


jeremy

On Feb 19, 2007, at 3:20 PM, silverburgh.meryl at gmail.com wrote:

> Hi,
>
> I have a function called 'test' defined in A.py.
> How can I call that function test in my another file B.py?
>
> Thank you.
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list