Import module from a different subdirectory
Peter J. Holzer
hjp-python at hjp.at
Sat May 18 18:47:34 EDT 2019
On 2019-05-18 09:43:34 -0700, Rich Shepard wrote:
> The project layout, briefly, is:
> All subdirectories contain a __init__.py file to identify them as packages.
> 'classes/' contains model.py; 'gui/' contains test_act_de.py.
> The project root directory is present in both PYTHONPATH and sys.path:
> $ echo $PYTHONPATH
This won't help much if your directory named "business-tracker" (see
_ | Peter J. Holzer | we build much bigger, better disasters now
|_|_) | | because we have much more sophisticated
| | | hjp at hjp.at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the Python-list