Jan-01-2019, 01:55 AM
assume a directory structure as follows (change to your specifications)
now modify the __init__.py in MyProject, as below, and leave one in src empty
results:
Output:MyProject
|__src
main.py
config_x.py
mod_x.py
in the MyProject directory and the src directory add two files, both named __init__.pynow modify the __init__.py in MyProject, as below, and leave one in src empty
/MyProject __init__.py /src __init__.py config_x.py main.py mod_x.pysave all and rerun, it works on my end.
results:
Output:$ python ./src/main.py
5
DO SOMETHING