Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Alternatively, invoke app.py as a module in the package: From the dir above my_app, call python -m my_app.app or python3 -m my_app.app. See stackoverflow.com/a/11536794/674064 Commented Oct 30, 2016 at 10:23
  • 6
    I'd remove the suggestion to use from __init__ import .... It's not the right way of doing things. It can even break code if some code in the submodules depends on the package name (e.g. if you use modules like pickle directly or shleve etc using that solution will make data unreadable). Commented Oct 30, 2016 at 10:35