Giovanni Bajo schrieb:
> After that, you have several solutions. One is to explicitally import
> "Gnumed.wxpython" yourself in your code. You don't even know to actually
> execute the code:
> 
> if 0:  # hint for PyInstaller
>    import Gnumed.wxpython   # yes, i want the wxpython plugin
> 
If Pyinstaller still parses the bytecode to find import statements,
this will not work because blocks starting with 'if 0:' are optimized
away.  Using a function that's never called should be safer:

def hint():
    import Gunmed.wxPython

Thomas

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to