pythonpath

luca72 lucaberto at libero.it
Mon Mar 1 11:48:34 CET 2010


Sorry for my stupid question if i have to load module from a folder i
have to append it to the sys path the folder?
ex:
if my  folder module is  /home/lucak904/Scrivania/Luca/enigma2
i do this :
import sys
sys.path.append('/home/lucak904/Scrivania/Luca/enigma2')
If this is correct why when i write:
form enigma2 import *
i get no module named enigma2

Thanks
Luca

I'm under linux





More information about the Python-list mailing list