add quotes
@@ -22,7 +22,7 @@ def _run_bin(pyinstaller_path):
# run the binary to test if working
conan_bin = os.path.join(pyinstaller_path, 'dist', 'conan', 'conan')
if platform.system() == 'Windows':
- conan_bin += '.exe'
+ conan_bin = '"' + conan_bin + '.exe' + '"'
retcode = os.system(conan_bin)
if retcode != 0:
raise Exception("Binary not working")
@@ -98,21 +98,21 @@ def pyinstall(source_folder):
win_ver_file = os.path.join(pyinstaller_path, 'windows-version-file')
content = _windows_version_file(__version__)
save(win_ver_file, content)
- win_ver = "--version-file %s" % win_ver_file
+ win_ver = "--version-file \"%s\"" % win_ver_file
if not os.path.exists(pyinstaller_path):
os.mkdir(pyinstaller_path)
- subprocess.call('%s -y -p %s --console %s %s %s'
+ subprocess.call('%s -y -p "%s" --console "%s" %s %s'
% (command, source_folder, conan_path, hidden, win_ver),
cwd=pyinstaller_path, shell=True)
_run_bin(pyinstaller_path)
- subprocess.call('%s -y -p %s --console %s %s'
+ subprocess.call('%s -y -p "%s" --console "%s" %s'
% (command, source_folder, conan_server_path, win_ver),
cwd=pyinstaller_path, shell=True)
- subprocess.call('%s -y -p %s --console %s -n conan_build_info %s'
+ subprocess.call('%s -y -p "%s" --console "%s" -n conan_build_info %s'
% (command, source_folder, conan_build_info_path, win_ver),
cwd=pyinstaller_path, shell=True)
