On Friday 09 of January 2015 03:55:11 Kfeina feina wrote: > Ok, explicit imports are easier for pyinstaller. > But in the following example, where I only want to execute one function > (abort()): > > 1- import os -> you are loading all the modules and functions of the > package. > 2- from os import abort -> your are loading only the abort function. > > The first case will produce a bigger exe? Or not? > > Thanks again for your time.
PyInstaller works at the module level and not fuction level. If abort is a function then the 'os' module is included. If 'os' is a package and 'abort' module, then pyinstaller includes just the 'os.abort' module (suppose 'abort' does not have any other dependencies). -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: This is a digitally signed message part.
