gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] alph/alph/util psimages.py


From: Benja Fallenstein
Subject: [Gzz-commits] alph/alph/util psimages.py
Date: Tue, 22 Apr 2003 15:57:07 -0400

CVSROOT:        /cvsroot/alph
Module name:    alph
Changes by:     Benja Fallenstein <address@hidden>      03/04/22 15:57:07

Modified files:
        alph/util      : psimages.py 

Log message:
        some fixes, not working yet

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/alph/alph/alph/util/psimages.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: alph/alph/util/psimages.py
diff -u alph/alph/util/psimages.py:1.3 alph/alph/util/psimages.py:1.4
--- alph/alph/util/psimages.py:1.3      Tue Apr 22 15:49:05 2003
+++ alph/alph/util/psimages.py  Tue Apr 22 15:57:07 2003
@@ -15,15 +15,16 @@
            "ab1", "ab2" and "ab3". Note: 1-based.
     """
     print "Processing ",file
-    l = os.popen("file -i -b %(file)s" % locals()).readlines()[0]
-    l = l.rstrip().lstrip()
-    print "'%(l)s'" % locals()
+    # Don't check right now-- no os.popen in Jython
+    #l = os.popen("file -i -b %(file)s" % locals()).readlines()[0]
+    #l = l.rstrip().lstrip()
+    #print "'%(l)s'" % locals()
 
-    if l != "application/pdf" and l != "application/postscript":  
-       print "Unknown - ignoring"
-       return 0
+    #if l != "application/pdf" and l != "application/postscript":  
+    #  print "Unknown - ignoring"
+    #  return 0
 
-    cmdline = "gs -dBATCH -dNOPAUSE -sDEVICE=png256 -r%(res)s 
-sOutputFile=%(prefix)%%d %(file)s" % locals()
+    cmdline = "gs -dBATCH -dNOPAUSE -sDEVICE=png256 -r%(resolution)s 
-sOutputFile=%(prefix)%%d %(file)s" % locals()
     print "RUNNING ",cmdline
     res = os.system(cmdline)
     if res:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]