mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 21:31:00 +00:00
quote windows pathname arguments
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3070 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
ab0ad2e9ef
commit
7f4cc681d7
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ def create_shortcuts ():
|
|||
|
||||
target = os.path.join(sys.prefix, "RemoveLinkChecker.exe")
|
||||
path = os.path.join(dest_dir, "Uninstall LinkChecker.lnk")
|
||||
arguments = "-u " + os.path.join(sys.prefix, "LinkChecker-wininst.log")
|
||||
arguments = '-u "%s"' % os.path.join(sys.prefix, "LinkChecker-wininst.log")
|
||||
create_shortcut(target, "Uninstall LinkChecker", path, arguments)
|
||||
file_created(path)
|
||||
print "See the shortcuts installed in the LinkChecker Programs Group"
|
||||
|
|
@ -159,7 +159,7 @@ def adjust (f, script, post_interp):
|
|||
outfile = script+".bat"
|
||||
print "copying and adjusting %s -> %s" % (script, outfile)
|
||||
outf = open(outfile, "w")
|
||||
pat = '@%s%s -x "%%~f0" %%* & exit /b\n'
|
||||
pat = '@"%s"%s -x "%%~f0" %%* & exit /b\n'
|
||||
outf.write(pat % (get_python_exe(), post_interp))
|
||||
outf.writelines(f.readlines())
|
||||
outf.close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue