Skip to content

Commit

Permalink
Minor patch for PyInstaller wrapper cleaning process.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuvinJ committed Feb 9, 2019
1 parent f5243c8 commit dc04260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion distbuilder/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.3.0"
__version__ = "0.5.3.1"
7 changes: 4 additions & 3 deletions distbuilder/py_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,11 @@ def __clean( pyInstConfig, isBuildPrep ) :
removeFile( pyInstConfig.versionFilePath )

if isBuildPrep:
if isDir( pyInstConfig.distDirPath ) :
removeDir( pyInstConfig.distDirPath )
if isDir( pyInstConfig.distDirPath ) :
removeDir( pyInstConfig.distDirPath )
else :
specPath = pyInstConfig.pyInstSpecPath
specPath = ( pyInstConfig.pyInstSpec.path()
if pyInstConfig.pyInstSpec else None )
if( specPath and pyInstConfig.isSpecFileRemoved and
isFile( specPath ) ):
removeFile( specPath )
Expand Down

0 comments on commit dc04260

Please sign in to comment.