¡@

Home 

python Programming Glossary: xyz.b

Why python finds module instead of package if they have the same name?

http://stackoverflow.com/questions/14183541/why-python-finds-module-instead-of-package-if-they-have-the-same-name

in a.py' print 'sys.path ' sys.path print 'BEFORE import xyz.b' import xyz.b print 'AFTER import xyz.b' File t.py import os.. 'sys.path ' sys.path print 'BEFORE import xyz.b' import xyz.b print 'AFTER import xyz.b' File t.py import os sys ROOT_DIRECTORY.. 'BEFORE import xyz.b' import xyz.b print 'AFTER import xyz.b' File t.py import os sys ROOT_DIRECTORY os.path.abspath os.path.join..