Show
Ignore:
Timestamp:
11/25/08 00:39:15 (15 years ago)
Author:
jerome
Message:

Fixes #31 (will require a fix in PyKota as well, which references #32)
Added some stuff so we can be sure if the temporary files where created
by pkpgcounter and when/where.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/mscrap.py

    r3436 r3457  
    6060        """ 
    6161        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()) 
    6366        try : 
    6467            outfname = workfile.name