reportlab: add fixes for spaces in path contributed by Yoann Roman
authorrgbecker
Tue, 06 Apr 2010 12:54:39 +0000
changeset 3360 8f6bd331cb85
parent 3359 171fa15695a8
child 3361 b7da4a9298d4
reportlab: add fixes for spaces in path contributed by Yoann Roman
docs/genAll.py
tests/runAll.py
tests/test_docs_build.py
--- a/docs/genAll.py	Tue Apr 06 12:40:43 2010 +0000
+++ b/docs/genAll.py	Tue Apr 06 12:54:39 2010 +0000
@@ -26,7 +26,7 @@
             except:
                 if verbose: traceback.print_exc()
         else:
-            cmd = '%s %s %s' % (sys.executable,os.path.basename(p), not verbose and '-s' or '')
+            cmd = '"%s" %s %s' % (sys.executable,os.path.basename(p), not verbose and '-s' or '')
             if verbose: print cmd
             os.system(cmd)
 
--- a/tests/runAll.py	Tue Apr 06 12:40:43 2010 +0000
+++ b/tests/runAll.py	Tue Apr 06 12:54:39 2010 +0000
@@ -114,7 +114,7 @@
         os.close(sys.stderr.fileno())
 
 def runExternally():
-    cmd = sys.executable+' -c"from tests import runAll;runAll.mainEx()"'
+    cmd = '"%s" -c"from tests import runAll;runAll.mainEx()"' % sys.executable
     i,o,e=os.popen3(cmd)
     i.close()
     out = o.read()
--- a/tests/test_docs_build.py	Tue Apr 06 12:40:43 2010 +0000
+++ b/tests/test_docs_build.py	Tue Apr 06 12:54:39 2010 +0000
@@ -24,7 +24,7 @@
             if os.path.isfile('reportlab-reference.pdf'):
                 os.remove('reportlab-reference.pdf')
 
-            os.system("%s genAll.py -s" % sys.executable)
+            os.system('"%s" genAll.py -s' % sys.executable)
 
             assert os.path.isfile('reportlab-userguide.pdf'), 'genAll.py failed to generate reportlab-userguide.pdf!'
             assert os.path.isfile('reportlab-reference.pdf'), 'genAll.py failed to generate reportlab-reference.pdf!'