is their exclude folder options? #6126
Answered
by
rokm
kk-hiraskar
asked this question in
PyInstaller
-
In pyinstaller any option to exclude particular file or folder which is present inside module.
These are huge files which are in module, but actually not used/required for execution. I searched on net, but not got any info for this optimization. |
Beta Was this translation helpful? Give feedback.
Answered by
rokm
Aug 16, 2021
Replies: 1 comment 1 reply
-
There is no option to specify folders to exclude. But you can always filter For example, # myprogram.spec
a = Analysis(...)
# Filter out all entries in matplotlib/mpl-data/fonts
mpl_font_path = os.path.join('matplotlib', 'mpl-data', 'fonts')
a.datas = [entry for entry in a.datas if not entry[0].startswith(mpl_font_path)]
pyz = PYZ(...)
exe = EXE(...)
coll = COLLECT(...) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kk-hiraskar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no option to specify folders to exclude.
But you can always filter
Analysis.datas
in your .spec file to remove unwanted entries.For example,