how to import a .py in a parent directory ?

Fouff fouff at fouff.com
Wed Feb 16 02:14:51 EST 2005


raver2046 a écrit :
> hello,
> 
> I know to import a .py in a subdirectory is   :   .  (dot)
> but what is the statment for parent directory ?
> 
> thank you.
> olivier noblanc
> http://www.logiciel-erp.fr
> 
> 
sys.path.append("..")
import you_python_file_you_want_to_import.py



More information about the Python-list mailing list