Skip to content

Commit

Permalink
fix #17 #20 #24: AutoItLibrary Install Fails when Python path contain…
Browse files Browse the repository at this point in the history
…s spaces
  • Loading branch information
lucyking committed Oct 9, 2020
1 parent 28361c6 commit 20b9a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# Register the AutoItX COM object
# and make its methods known to Python
#
cmd = r"%SYSTEMROOT%\system32\regsvr32.exe /S " + instFile
cmd = r"%SYSTEMROOT%\system32\regsvr32.exe /S " + '\"' + instFile + '\"'
print(cmd)
subprocess.check_call(cmd, shell=True)
makepy = os.path.normpath(os.path.join(get_python_lib(), "win32com/client/makepy.py"))
Expand All @@ -81,7 +81,7 @@
print("AutoItLibrary requires win32com. See http://starship.python.net/crew/mhammond/win32/.")
sys.exit(2)

cmd = "python %s %s" % (makepy, instFile)
cmd = "python \"%s\" \"%s\"" % (makepy, instFile)
print(cmd)
subprocess.check_call(cmd)
else :
Expand All @@ -95,7 +95,7 @@
# Do the distutils installation
#
setup(name = "robotframework-autoitlibrary",
version = "1.2.6",
version = "1.2.7",
description = "AutoItLibrary for Robot Framework",
author = "Joe Hisaishi",
author_email = "joehisaishi1943@gmail.com",
Expand Down

0 comments on commit 20b9a85

Please sign in to comment.