• 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/a/PasteWebKit-1.0/paste/webkit/FakeWebware/MiscUtils/Funcs.py   PasteWebKit(Download)
		having to take over the module level variable, tempdir.
		"""
		if not dir: dir = tempfile.gettempdir()
		pre = tempfile.gettempprefix()
		while 1:
			i = tempfile._counter.get_next()
			file = os.path.join(dir, pre + str(i) + suffix)

src/r/o/roreditor-HEAD/trunk/lib_windows/wx/lib/pydocview.py   roreditor(Download)
                fno = tfile.fileno()
                self._sharedMemory = mmap.mmap(fno, 1024, "shared_memory")
            else:
                tfile = file(os.path.join(tempfile.gettempdir(), tempfile.gettempprefix() + self.GetAppName() + '-' + wx.GetUserId() + "AGSharedMemory"), 'w+b')
                tfile.write("*")
                tfile.seek(1024)
                tfile.write(" ")

src/a/r/arcode-0.1/arcode/arcode.py   arcode(Download)
 
        # generate unique tmp file names by cheating
        makesuffix = tempfile._RandomNameSequence()
        self.encoded = tempfile.gettempprefix() + makesuffix.next()
        self.decoded = tempfile.gettempprefix() + makesuffix.next()
 
        while self.encoded in self.dir:
            self.encoded = tempfile.gettempprefix() + makesuffix.next()
 
        while self.decoded in self.dir:
            self.decoded = tempfile.gettempprefix() + makesuffix.next()

src/r/o/roreditor-HEAD/lib_windows/wx/lib/pydocview.py   roreditor(Download)
                fno = tfile.fileno()
                self._sharedMemory = mmap.mmap(fno, 1024, "shared_memory")
            else:
                tfile = file(os.path.join(tempfile.gettempdir(), tempfile.gettempprefix() + self.GetAppName() + '-' + wx.GetUserId() + "AGSharedMemory"), 'w+b')
                tfile.write("*")
                tfile.seek(1024)
                tfile.write(" ")

src/w/e/Webware-for-Python-1.0.2/MiscUtils/Funcs.py   Webware for Python(Download)
		"""
		if not dir:
			dir = tempfile.gettempdir()
		pre = tempfile.gettempprefix()
		while 1:
			i = _counter.get_next()
			file = os.path.join(dir, pre + str(i) + suffix)

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)) 

src/z/a/zamboni-lib-HEAD/lib/python/babel/messages/frontend.py   zamboni-lib(Download)
            catalog.update(template, self.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:
            catalog.update(template, options.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:

src/r/e/reporter-lib-HEAD/packages/Babel/babel/messages/frontend.py   reporter-lib(Download)
            catalog.update(template, self.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:
            catalog.update(template, options.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:

src/m/d/mdn-lib-HEAD/packages/Babel/babel/messages/frontend.py   mdn-lib(Download)
            catalog.update(template, self.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:
            catalog.update(template, options.no_fuzzy_matching)
 
            tmpname = os.path.join(os.path.dirname(filename),
                                   tempfile.gettempprefix() +
                                   os.path.basename(filename))
            tmpfile = open(tmpname, 'w')
            try:

src/p/y/pygccxml-HEAD/pygccxml_dev/pygccxml/utils/__init__.py   pygccxml(Download)
def create_temp_file_name(suffix, prefix=None, dir=None):
    """small convenience function that creates temporal file.
 
    This function is a wrapper aroung Python built-in function - tempfile.mkstemp
    """
    if not prefix:
        prefix = tempfile.gettempprefix()

  1 | 2 | 3 | 4 | 5 | 6  Next