Don't include Python config files in frozen releases.

master
Pacman Ghost 5 years ago
parent 744403d8e7
commit 3b40e9750c
  1. 6
      _freeze.py

@ -100,10 +100,12 @@ run_pyinstaller( args ) # nb: this doesn't return any indication if it worked or
# add extra files to the distribution
def ignore_files( dname, fnames ): #pylint: disable=redefined-outer-name
"""Return files to ignore during copytree()."""
# ignore Python cached files
ignore = [ "__pycache__" ]
# ignore cache files
ignore = [ "__pycache__", "GPUCache" ]
# ignore dot files
ignore.extend( f for f in fnames if f.startswith(".") )
# ignore Python files
ignore.extend( f for f in fnames if os.path.splitext(f)[1] == ".py" )
# ignore anything in .gitignore
fname = os.path.join( dname, ".gitignore" )
if os.path.isfile( fname ):

Loading…
Cancel
Save