Correct import and package structure now that __init__.py is optional
问题 I'm building a package that contains scripts to be run. They import modules contained in a subfolder directly under the script. Now that __init__ is not required after Python 3.3, what's the correct file structure and import statement to have? I'd like to not have to specify the import from the topmost folder down, only as a relative path, here sub/module . This is the current state of the file structure: Root\ src\ sub\ module.py script.py parent_module.py setup.py # Inside script.py import