From: "Martin von Loewis" <loewis@informatik.hu-berlin.de> > A number of modules in the standard library make use of dynamic > imports, or import modules through C code. In either case, no import > statement can be found. > > Unfortunately, this means that tools like freeze or py2exe cannot > detect that those modules are used, so the frozen applications will > then fail at runtime. To make this work, I suggest to add explicit > import statements, which are put into a conditional 'if 0:'. Very good idea IMO, but 'if 0:' is optimized away. This one works: _FAKE=0 if _FAKE: import whatever Thomas
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4