• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(99)  |  Call(97)  |  Derive(0)  |  Import(2)
Accessor for tempdir.template.

        def gettempprefix():
    """Accessor for tempdir.template."""
    return template
        


src/p/y/pyfusion-HEAD/examples/test_savez.py   pyfusion(Download)
# now see how fast it is for a little one
small=arange(10)
st=time()
from tempfile import gettempdir, gettempprefix, mkstemp
 
#tmp=gettempdir()+gettempprefix()
tmpfd=mkstemp(suffix='.npz')

src/p/r/prdg.util-0.0.7/prdg/util/file.py   prdg.util(Download)
from tempfile import gettempdir, gettempprefix
from datetime import datetime
from os.path import join, splitext, dirname
from os import remove, access, F_OK, chdir
 
def exists(path):
    return access(path, F_OK)
 
def get_temp_filename():
    return join(gettempdir(), gettempprefix() + str(datetime.now().microsecond))