Skip to content

Commit 20b9a85

Browse files
committed
fix #17 #20 #24: AutoItLibrary Install Fails when Python path contains spaces
1 parent 28361c6 commit 20b9a85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# Register the AutoItX COM object
7171
# and make its methods known to Python
7272
#
73-
cmd = r"%SYSTEMROOT%\system32\regsvr32.exe /S " + instFile
73+
cmd = r"%SYSTEMROOT%\system32\regsvr32.exe /S " + '\"' + instFile + '\"'
7474
print(cmd)
7575
subprocess.check_call(cmd, shell=True)
7676
makepy = os.path.normpath(os.path.join(get_python_lib(), "win32com/client/makepy.py"))
@@ -81,7 +81,7 @@
8181
print("AutoItLibrary requires win32com. See http://starship.python.net/crew/mhammond/win32/.")
8282
sys.exit(2)
8383

84-
cmd = "python %s %s" % (makepy, instFile)
84+
cmd = "python \"%s\" \"%s\"" % (makepy, instFile)
8585
print(cmd)
8686
subprocess.check_call(cmd)
8787
else :
@@ -95,7 +95,7 @@
9595
# Do the distutils installation
9696
#
9797
setup(name = "robotframework-autoitlibrary",
98-
version = "1.2.6",
98+
version = "1.2.7",
9999
description = "AutoItLibrary for Robot Framework",
100100
author = "Joe Hisaishi",
101101
author_email = "[email protected]",

0 commit comments

Comments
 (0)