]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilylib.py : Wrap arguments with double quotes and clarify a comment.
authorJulien Rioux <jrioux@physics.utoronto.ca>
Tue, 13 Dec 2011 12:43:30 +0000 (07:43 -0500)
committerGraham Percival <graham@percival-music.ca>
Tue, 20 Dec 2011 15:50:24 +0000 (07:50 -0800)
python/lilylib.py

index 26eb743a113d5cc0cc0a44af580b7442c2deb6cb..4f0801ba5edaca4dc40c0aafddad2047c633c081 100644 (file)
@@ -149,11 +149,12 @@ please read 'Setup for MacOS X' in Application Usage.")
         os.system ("open http://python.org/download/")
         sys.exit (2)
 
-# Modified version of the commands.mkarg(x), which always uses
-# double quotes (since Windows can't handle the single quotes:
+# A modified version of the commands.mkarg(x) that always uses
+# double quotes (since Windows can't handle the single quotes)
+# and escapes the characters \, $, ", and ` for unix shells.
 def mkarg(x):
     if os.name == 'nt':
-        return x
+        return ' "%s"' % x
     s = ' "'
     for c in x:
         if c in '\\$"`':