mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure no __pycache__ is added to pylib.zip
This commit is contained in:
parent
488fe5198b
commit
dfb5b72eca
@ -573,6 +573,8 @@ def build_launchers(env, debug=False):
|
||||
|
||||
|
||||
def add_to_zipfile(zf, name, base, zf_names):
|
||||
if '__pycache__' in name:
|
||||
return
|
||||
abspath = j(base, name)
|
||||
name = name.replace(os.sep, '/')
|
||||
if name in zf_names:
|
||||
|
Loading…
x
Reference in New Issue
Block a user