tkrajina / srtm.py

Geo elevation data parser for "The Shuttle Radar Topography Mission" data
Apache License 2.0
240 stars 57 forks source link

Crashing in packaged builds with pyinstaller #57

Open PapeCoding opened 4 months ago

PapeCoding commented 4 months ago

When an application is using this and is packaged with pyinstaller -F .\example.py, it crashes on a call to srtm.get_data(...), as it cannot find the list.json that is bundled in the package.

Here it would be nice to have an option to overwrite the list.json that it is searching for or find another method to make it available. The only way that I currently found is to overwrite srtm.mod_main.DEFAULT_LIST_JSON with a custom path.

Best regards, Sebastian