¡@

Home 

python Programming Glossary: package1.module1

Import paths - the right way?

http://stackoverflow.com/questions/6465549/import-paths-the-right-way

by package2 . What am i doing now is that for example in package1.module1 i write from package1 import module2 i.e. using full path to.. directly. OK so for from package1 import module2 in package1.module1 to work in both cases when running directly package1.module1.. to work in both cases when running directly package1.module1 and when importing it from package2 i add these lines at the..