caranha / Koudou

Modular small community simulator
GNU General Public License v3.0
2 stars 2 forks source link

Opening Files based on path of root directory #46

Closed AndreRoure closed 1 year ago

AndreRoure commented 1 year ago

While I was developing unit tests to test behaviors for the redesign I ran into a problem: all the files were being opened based where the python executable was located. Since main.py is at the root directory this was not a problem for the simulator, but the unit test was unable to open any file, even by changing parameters.

One possible simple solution I found was to simply change the working directory in the unit test. But the problem could emerge again in the future. This way its easier to access files for us and maybe for API users in the future.