Changeset 3457 for pkpgcounter/trunk
- Timestamp:
- 11/25/08 00:39:15 (16 years ago)
- Location:
- pkpgcounter/trunk/pkpgpdls
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/analyzer.py
r3456 r3457 84 84 try : 85 85 pdlhandler = self.detectPDLHandler() 86 dummyfile = tempfile.NamedTemporaryFile(mode="w+b") 86 dummyfile = tempfile.NamedTemporaryFile(mode="w+b", 87 prefix="pkpgcounter_", 88 suffix=".tiff", 89 dir=os.environ.get("PYKOTADIRECTORY") or tempfile.gettempdir()) 87 90 filename = dummyfile.name 88 91 try : … … 113 116 114 117 # Use a temporary file, always seekable contrary to standard input. 115 self.workfile = tempfile.NamedTemporaryFile(mode="w+b") 118 self.workfile = tempfile.NamedTemporaryFile(mode="w+b", 119 prefix="pkpgcounter_", 120 suffix=".prn", 121 dir=os.environ.get("PYKOTADIRECTORY") or tempfile.gettempdir()) 116 122 self.filename = self.workfile.name 117 123 while True : -
pkpgcounter/trunk/pkpgpdls/mscrap.py
r3436 r3457 60 60 """ 61 61 doctops = 'xvfb-run -a abiword --import-extension=.doc --print="%(outfname)s" "%(infname)s"' 62 workfile = tempfile.NamedTemporaryFile(mode="w+b") 62 workfile = tempfile.NamedTemporaryFile(mode="w+b", 63 prefix="pkpgcounter_", 64 suffix=".ps", 65 dir=os.environ.get("PYKOTADIRECTORY") or tempfile.gettempdir()) 63 66 try : 64 67 outfname = workfile.name