Did I find the right examples for you? yes no

All Samples(25)  |  Call(21)  |  Derive(0)  |  Import(4)

        def makedirs(d):
    try:
        os.makedirs(d)
    except OSError, e:
        if e.errno != 17:
            raise e
        


src/m/e/mercurial-2.9.1/mercurial/subrepo.py   Mercurial(Download)
        if not os.path.exists(os.path.join(root, '.hg')):
            create = True
            util.makedirs(root)
        self._repo = hg.repository(r.baseui, root, create=create)
        for s, k in [('ui', 'commitsubrepos')]:
        cachedir = os.path.dirname(cachefile)
        if not os.path.exists(cachedir):
            util.makedirs(cachedir, notindexed=True)
        fd = open(cachefile, 'w')
        fd.writelines(storehash)

src/h/g/hg-HEAD/mercurial/subrepo.py   hg(Download)
        if not os.path.exists(os.path.join(root, '.hg')):
            create = True
            util.makedirs(root)
        self._repo = hg.repository(r.baseui, root, create=create)
        for s, k in [('ui', 'commitsubrepos')]:
        cachedir = os.path.dirname(cachefile)
        if not os.path.exists(cachedir):
            util.makedirs(cachedir, notindexed=True)
        fd = open(cachefile, 'w')
        fd.writelines(storehash)

src/a/n/another-springnote-HEAD/src/convert_mediawiki.py   another-springnote(Download)
 
    print("Initializing...")
    util.makedirs(SAVE_ROOT, exist_ok=True)
 
    pages = util.load_resource(subdomain, 'pages')

src/m/e/mercurial-2.9.1/mercurial/scmutil.py   Mercurial(Download)
    def makedirs(self, path=None, mode=None):
        return util.makedirs(self.join(path), mode)
 
    def makelock(self, info, path):
        return util.makelock(info, self.join(path))

src/h/g/hg-HEAD/mercurial/scmutil.py   hg(Download)
    def makedirs(self, path=None, mode=None):
        return util.makedirs(self.join(path), mode)
 
    def makelock(self, info, path):
        return util.makelock(info, self.join(path))

src/x/c/xcp-storage-managers-HEAD/XenCert/StorageHandler.py   xcp-storage-managers(Download)
            Print(">> as a local directory. ")
            try:                
                util.makedirs(mountpoint, 755)                
                nfs.soft_mount(mountpoint, self.storage_conf['server'], self.storage_conf['serverpath'], 'tcp')
                mountCreated = True

src/x/c/xcp-storage-managers-HEAD/drivers/ISOSR.py   xcp-storage-managers(Download)
        # Create the mountpoint if it's not already there
        if not util.isdir(self.mountpoint):
            util.makedirs(self.mountpoint)
 
        mountcmd=[]

src/x/c/xcp-storage-managers-HEAD/drivers/NFSSR.py   xcp-storage-managers(Download)
        else:
            try:
                util.ioretry(lambda: util.makedirs(newpath))
            except util.CommandException, inst:
                if inst.code != errno.EEXIST:

src/p/l/pluginbuilder-1.1.0/pluginbuilder/build_plugin.py   pluginbuilder(Download)
 
from . import bundletemplate, recipes
from .util import (byte_compile, make_loader, copy_tree, makedirs, iter_platform_files, skipscm,
    copy_file_data, copy_resource, SCMDIRS, mergecopy, mergetree, make_exec, is_python_package)
 
                shutil.rmtree(d, ignore_errors=True)
    for d in dirs:
        makedirs(d)
    plist.write(plistPath)
    srcmain = module.setup.main_executable_path()
        pyhome = os.path.join(resdir, 'lib', 'python' + sys.version[:3])
        realhome = os.path.join(sys.prefix, 'lib', 'python' + sys.version[:3])
        makedirs(pyhome)
        force_symlink('../../site.py', os.path.join(pyhome, 'site.py'))
        force_symlink(os.path.join(realhome, 'config'), os.path.join(pyhome, 'config'))
            if src == dest:
                continue
            makedirs(os.path.dirname(dest))
            force_symlink(os.path.abspath(src), dest)
 
            if src == dest:
                continue
            makedirs(os.path.dirname(dest))
            force_symlink(os.path.abspath(src), dest)
 

src/x/c/xcp-storage-managers-HEAD/drivers/nfs.py   xcp-storage-managers(Download)
def soft_mount(mountpoint, remoteserver, remotepath, transport):
    """Mount the remote NFS export at 'mountpoint'"""
    try:
        if not util.ioretry(lambda: util.isdir(mountpoint)):
            util.ioretry(lambda: util.makedirs(mountpoint))

  1 | 2  Next