Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14215

Packaging with pyinstaller when there are custom input loaders

$
0
0

I'm trying to generate an app on my mac from a collection of python scripts. When I use pyinstaller, it can create a binary without error but it fails at runtime because of my custom import loader. This is not surprising because my import loader looks at an environment variable to get the path, finds the file, and interprets it. If I'm packaging my app and running it elsewhere, that path variable doesn't exist and the files aren't there. I guess my expectation was that pyinstaller would interpret those files, store the interpretation, and not use the custom import at all when running the final binary. Do I have to do that bypassing logic myself? How do I make these things work together?


Viewing all articles
Browse latest Browse all 14215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>