Monday, 15 February 2010

why python is not able to import a module even though __init__.py exists -



why python is not able to import a module even though __init__.py exists -

my project has file scheme this

test/phx_common_lib/scan/

in directory __init__.py file exists along other file adfemulator.py. created python file collectinjectscan.py in directory , tried import in file

import phx_common_lib.scan.collectinjectscan collectinjectimage

but giving error

importerror: no module named collectinjectscan

but if seek import adfemulator.py below

import phx_common_lib.scan.adfemulator emu

can 1 please allow me know why not able import newly written python file?

python

No comments:

Post a Comment