Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/a/r/archversion-HEAD/src/lib/archversion/database.py   archversion(Download)
'''Database Module'''
 
from archversion.error import BaseError
from xdg.BaseDirectory import xdg_cache_home
import json
                    os.makedirs(directory)
                except (IOError, OSError) as exp:
                    raise BaseError("Create database path failed: %s" % exp)
            try:
                open(path, "a")
            except (IOError, OSError) as exp:
                raise BaseError("Create database filename failed; %s" % exp)