¡@

Home 

python Programming Glossary: root_directory

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

root.py File contents root tests _ init _.py import os sys ROOT_DIRECTORY os.path.abspath os.path.join os.path.dirname __file__ '.... os.path.dirname __file__ '.. ..' if not sys.path or ROOT_DIRECTORY not in sys.path sys.path.insert 0 ROOT_DIRECTORY # These imports.. or ROOT_DIRECTORY not in sys.path sys.path.insert 0 ROOT_DIRECTORY # These imports are required for unittest to find test modules..