AzHarcos / talkatoo-translator

1 stars 0 forks source link

adjust file handling for generated exe #8

Closed AzHarcos closed 11 months ago

AzHarcos commented 11 months ago

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.