dabo Commit
Revision 5452
Date: 2009-10-07 10:12:23 -0700 (Wed, 07 Oct 2009)
Author: Johnf
Trac: http://trac.dabodev.com/changeset/5452

Changed:
U   trunk/dabo/lib/reportUtils.py

Log:
Viewers such as KPDF and acroread (on linux) saw a  ' path'  that contains 
spaces as multiple files to process.  I added the single quotes around the 
path.  This was to insure that the path passed was used and allow it to accept 
spaces in the name.  Tested on Windows and Linux.  I believe OSX should work.

Diff:
Modified: trunk/dabo/lib/reportUtils.py
===================================================================
--- trunk/dabo/lib/reportUtils.py       2009-10-05 23:12:02 UTC (rev 5451)
+++ trunk/dabo/lib/reportUtils.py       2009-10-07 17:12:23 UTC (rev 5452)
@@ -64,7 +64,7 @@
                                        sysfunc = os.system
                                else:
                                        sysfunc = os.popen2
-                               sysfunc("%s %s" % (viewer, path))
+                               sysfunc("%s '%s'" % (viewer, path))
 
 
 def getTestCursorXmlFromDataSet(dataset):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to