Skip to content

Commit

Permalink
Fix pyinstaller#1132: PyInstaller crashes if cache-destination-dir do…
Browse files Browse the repository at this point in the history
…esn't exist.
  • Loading branch information
htgoebel committed Dec 31, 2014
1 parent ed4611a commit f6f9e4e
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 f6f9e4e

Please sign in to comment.