changeset 691:d586ea538d36

merge
author Jeff Hammel <k0scist@gmail.com>
date Mon, 02 Jun 2014 12:40:51 -0700
parents 5e8d3f68a997 (diff) 6f48a3e5ab41 (current diff)
children 80c47cc35f37
files
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/gview.py	Mon Jun 02 11:25:31 2014 -0700
+++ b/python/gview.py	Mon Jun 02 12:40:51 2014 -0700
@@ -10,6 +10,7 @@
 # imports
 import argparse
 import os
+import shlex
 import subprocess
 import sys
 import tempfile
@@ -28,7 +29,7 @@
         self.add_argument('-e', '--program', dest='program',
                           default='fdp',
                           help="GraphViz program to invoke [DEFAULT: %(default)s]")
-        self.add_argument('-v', '--view', dest='viewer', default='feh',
+        self.add_argument('-v', '--view', dest='viewer', default='feh -F',
                           help="viewer")
 
 
@@ -52,7 +53,8 @@
 
     try:
         if options.viewer:
-            subprocess.call([options.viewer, output])
+            viewer = shlex.split(options.viewer)
+            subprocess.call(viewer + [output])
     finally:
         if not options.output:
             os.remove(output)