Jan-01-2019, 04:19 PM
(Jan-01-2019, 01:55 AM)Larz60+ Wrote: assume a directory structure as follows (change to your specifications)
in the MyProject directory and the src directory add two files, both named __init__.py
Output:MyProject |__src main.py config_x.py mod_x.py
now 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
I managed to do the same thing too now, thank you very much friend. You are a saviour, this is what I was looking for the last 2 days. Thank you very much