From 34fb5a91c401a4a3dd6897ffc644b40f0f536018 Mon Sep 17 00:00:00 2001 From: giovannibajo Date: Tue, 16 May 2006 15:26:06 +0000 Subject: [PATCH] Fix quoting of filenames when invoking external commands like strip and upx git-svn-id: http://svn.pyinstaller.org/trunk@276 8dd32b29-ccff-0310-8a9a-9233e24343b1 --- Build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build.py b/Build.py index 4c12a2f..cb0b624 100755 --- a/Build.py +++ b/Build.py @@ -317,9 +317,9 @@ def checkCache(fnm, strip, upx): if upx: if strip: fnm = checkCache(fnm, 1, 0) - cmd = "upx --best -q %s" % cachedfile + cmd = "upx --best -q \"%s\"" % cachedfile else: - cmd = "strip %s" % cachedfile + cmd = "strip \"%s\"" % cachedfile shutil.copy2(fnm, cachedfile) os.chmod(cachedfile, 0755) os.system(cmd)