Thanks so much for the very helpful instruction on Python through this book! I’m having some issue with making sure my functions can call each other, and was hoping you could assist me,
Specifically, my ex47_tests seem to be unable to reach the ex47.game file, and thus not allowing me to import Room.
As suggested, my file directory is as follows:
The tests work as I run pytest. However, when I try running the file, it seems like the module was not found (“ModuleNotFoundError: No module named ‘ex47’). I have done the suggestions in the book to make sure I have an init.py file as well as type $env:PYTHONPATH = $env:PYTHONPATH;.” but still the module is not found.
Can you kindly advise what I should do so that the ex47_test.py is able to locate the ex47.game module (which I understand is the point of exercise) please?