I have a problem where to put a module (lexicon.py for ex 49).
My tree looks like this:
lessons/ ex48/ (finished) ex49/ (1) exercise49/parser.py, __init__.py(2) tests/test_parser.py, __init__.py venv/ bin/ docs/ ex50/ (to do)
If I put lexicon.py in folder ex49 (1) my test_parser.py works fine but not parser.py
If I put lexicon.py in folder exercise49 (2) parser.py works fine but not my test_parser.py
I have tried as many combinations I can imagine.
I have put “import lexicon” or “from exericse49 import lexicon” depending where lexicon are at that moment.
It works if I have a copy of lexicon in each folder.
But that would be a maintainers night mare I guess.
Is there a “way to do” this I just cannot see?
Or another workaround?
I have a init.py in both exercise and tests folder. (edit 4 november).