On 16/09/2016 12:18, Hartmut Goebel wrote:
> Am 15.09.2016 um 19:57 schrieb Gianluca Storti:
>> How can I force PyInstaller to leave out that dependency?
> You need to *not* make this file a module, but handle it like a data
> file. If you really want to handle it like a module, you'll need to use
> --exclude-module and implement your own import mechanism - which in the
> end will be the same as handling it as a data-file :-)
Security is the other major reason to read in data as data rather than
as a python module is that you an make sure that the data file is never
executed, (by avoiding exec & eval statements). Then if someone
introduces malicious content it will be rejected.

Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to