Skip to content

Commit

Permalink
Merge pull request pyinstaller#1135 from pyinstaller/issue-1132
Browse files Browse the repository at this point in the history
Fix pyinstaller#1132: PyInstaller crashes if cache-destination-dir doesn't exist.
  • Loading branch information
matysek committed Jan 2, 2015
2 parents ed4611a + f6f9e4e commit e03f5f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyInstaller/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,8 @@ def checkCache(fnm, strip=False, upx=False, dist_nm=None):
strip_options = ["-S"]
cmd = ["strip"] + strip_options + [cachedfile]

if not os.path.exists(os.path.dirname(cachedfile)):
os.makedirs(os.path.dirname(cachedfile))
shutil.copy2(fnm, cachedfile)
os.chmod(cachedfile, 0755)

Expand Down

0 comments on commit e03f5f4

Please sign in to comment.