Is there a way to have py2exe embed static files (and/or subdirectories of static files) in a library.zip and/or the exe file itself (with zipfile=None) and then transparently access these embedded static files from code at runtime?
Thank you, Malcolm
This sounds like the recipe you need: Extend py2exe to copy files to the zipfile where pkg_resources can load them
Using that effectively probably requires some knowledge of pkg_resources which is related to (part of) setuptools, whence come "Python Eggs".
Just thought I'd share this here too for the benefit of those still looking for answers:
Py2exe: Embed static files in exe file itself and access them
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With