Hello,
I have a python program splitted in multiple files, I convert it to an executable with pyinstaller.
I am not sure about witch is the best practise for importing libraries to decrease the size of the executable
Should I import the whole library:
Also, since my program is splitted in multiple files, I have a few import for the same library (for example os), is it advisable to use a main file where I import all needed libraries for the whole program?
I have a python program splitted in multiple files, I convert it to an executable with pyinstaller.
I am not sure about witch is the best practise for importing libraries to decrease the size of the executable
Should I import the whole library:
import osor only the needed functions:
from os.path import joinWhich is better?
Also, since my program is splitted in multiple files, I have a few import for the same library (for example os), is it advisable to use a main file where I import all needed libraries for the whole program?