Skip to content

valhuber/SiblingImports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sibling Imports

We love Python, but import statements can be... trying.

This project explores an approach, based on this article. Thanks!

  

Using __init__.py

Works with or without.

  

Scenario 1 - run run.py

Works as documented above:

cd SiblingImports
python run.py

Or, launch configuration Run.

  

Scenario 2 - run SiblingA/A.py

Works like this:

cd SiblingA
python A.py

Or, launch RunSiblingA (which note - sets cwd)

About

Explore Python Sibling Imports

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages