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

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

        def find_sesame_keys():
    # use OrderedDict to maintain order in which keys are found
    keys = collections.OrderedDict()
    for root, dirs, files in os.walk(os.getcwd()):
        for filename in fnmatch.filter(files, '*.key'):
                # attempt to read the sesame key; non-keyczar files will error
                key = read_key(os.path.join(root, filename))

                # generate a relative path to the key from current working dir
                relative_path = root[len(os.getcwd()):]
                if relative_path.startswith(os.path.sep):
                    relative_path = relative_path[1:]

                keys[os.path.join(relative_path, filename)] = key

            except (ValueError, KeyError):
    return keys

src/s/e/sesame-0.3.2/sesame/cli.py   sesame(Download)
from sesame.utils import ask_overwrite
from sesame.utils import confirm
from sesame.utils import find_sesame_keys
from sesame.utils import read_key
    if args.keyfile is None:
        # attempt to locate a key
        keys = find_sesame_keys()
        if len(keys) == 0: