Changeset 3446 for pykota/trunk
- Timestamp:
- 11/13/08 08:44:14 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3413 r3446 138 138 if not directory : 139 139 directory = "./" 140 tmpdir = tempfile.gettempdir() 141 lockfilename = os.path.join(tmpdir, "%s..LCK" % myname) 140 lockfilename = os.path.join(tempfile.gettempdir(), "%s..LCK" % myname) 142 141 if os.path.exists(lockfilename) : 143 142 lockfile = open(lockfilename, "r") … … 231 230 self.PrinterName = os.environ.get("PRINTER", "") 232 231 directories = [ self.config.getPrinterDirectory(self.PrinterName), 233 "/tmp", 234 "/var/tmp" ] 232 tempfile.gettempdir() ] 235 233 self.Directory = None 236 234 for direc in directories :