[or-cvs] r17095: {updater} Make sure arguments to python get quoted right by wrapper sc (updater/trunk)

nickm at seul.org nickm at seul.org
Tue Oct 14 20:03:50 UTC 2008


Author: nickm
Date: 2008-10-14 16:03:50 -0400 (Tue, 14 Oct 2008)
New Revision: 17095

Modified:
   updater/trunk/setup.py
Log:
Make sure arguments to python get quoted right by wrapper scripts.  $ @ is portable, yes?

Modified: updater/trunk/setup.py
===================================================================
--- updater/trunk/setup.py	2008-10-14 20:03:29 UTC (rev 17094)
+++ updater/trunk/setup.py	2008-10-14 20:03:50 UTC (rev 17095)
@@ -43,7 +43,7 @@
         if extrapath:
             f.write('PYTHONPATH="$PYTHONPATH:%s"\n'%extrapath)
             f.write('export PYTHONPATH\n')
-        f.write("%s -m thandy.%s $*\n" %(sys.executable, modname))
+        f.write('%s -m thandy.%s "$@"\n' %(sys.executable, modname))
         f.close()
         SCRIPTS.append(fname)
 



More information about the tor-commits mailing list