Changeset 3457 for pkpgcounter/trunk/pkpgpdls/analyzer.py
- Timestamp:
- 11/25/08 00:39:15 (16 years ago)
- Files:
-
- 1 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 :