Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def mkdir_not_existing(path):
    if not os.path.isdir(path):
        os.makedirs(path)
        


src/d/r/drape-HEAD/session.py   drape(Download)
    def __setitem__(self, key, value):
        directory = config.SESSION_FILE_DIRECTORY
        util.mkdir_not_existing(directory)
 
        path = '%s/%s' % (directory, key)

src/d/r/drape-HEAD/render.py   drape(Download)
        import jinja2
        import util
        util.mkdir_not_existing('data/jinja_cache')
        _jinja2_env = jinja2.Environment(
            loader=jinja2.FileSystemLoader(config.TEMPLATE_DIR),

src/d/r/drape-HEAD/debug.py   drape(Download)
def get_logger():
    global _logger
    if _logger is None:
        dirpath = 'data/log'
        util.mkdir_not_existing(dirpath)