Skip to content

is their exclude folder options? #6126

Answered by rokm
kk-hiraskar asked this question in PyInstaller
Discussion options

You must be logged in to vote

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,

# 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(...)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kk-hiraskar
Comment options

Answer selected by kk-hiraskar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants