Skip to main content
Python relative imports  (Just let me use the file system please) Stuart Mitchell
Whats the problem I have decided to make my source code be sorted in pretty directories
\prog   main.py   \scripts script1.py   \functionalpart   __init__.py   module1.py
main can import functionalpart.module1 But script1 cannot import  module1
Whats the problem Why would I want to do this Tests
Little scripts that use functionality
Come on c lets me do it, do I have to explain. Why not Looks ugly
Could lead to namespace clashes Import foo