When building a single file executable the files that are included in the build can only be accessed using the internal folder sys._MEIPASS. This is the case for moon-list.json and KingdomModel.zip at the moment.
Added a function internal_resource_path to add the required prefix to the path for these two files.
The folder gui is also included in the exe and needs to be accessed this way.
When building a single file executable the files that are included in the build can only be accessed using the internal folder
sys._MEIPASS
. This is the case formoon-list.json
andKingdomModel.zip
at the moment.Added a function
internal_resource_path
to add the required prefix to the path for these two files.The folder
gui
is also included in the exe and needs to be accessed this way.