How to call a function defined in another py file

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Feb 19 16:12:51 EST 2007


silverburgh.meryl at gmail.com a écrit :
> 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.
> 

# b.py

import A
A.test()



More information about the Python-list mailing list