I need some help running modules as stand alone scripts. Let's assume I have the following folder layout:
In the following directory structure, worker_test.py is the unit test module for worker_monitor and worker_process. Now, I can execute worker_test.py fine from within PyCharm (PyCharm is totally awesome here!) I am struggling to run this test from the command line.
If I run the tests from WorkersTest/, I get the error "ImportError: No module named my_package.Workers.worker_monitor". I'm assuming that PyCharm successfully runs the tests because it applies some magic to the paths.
I would like to know what magic is being applied? Thanks.