From: Massa, H. A. <ch...@gh...> - 2021-02-01 20:42:46
|
Hi Will, > > I’ve had my first experience using py2exe today, but I appear to be > hitting some snags with dynamic imports (I have gone through the wiki to no > avail). > py2exe tries to freeze everything, in as few files as possible. That is actively static. Which does not fit well with "dynamic" anything. My solution: http://www.py2exe.org/index.cgi/py2exeAndPIL "Make it dumb". Do not rely on any dynamic directory scanning or dynamic import. Remove that dynamic import code, and statically import the modules you need. Cheers Harald -- GHUM GmbH Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 Amtsgericht Stuttgart, HRB 734971 |