Exemplo n.º 1
0
def find_examples(root):
    root = Path(root)
    examples = []
    for e in version.all_sketch_extensions():
        examples += [x for x in root.walkfiles('*' + e)
                     if x.parent.name == x.namebase]
    return examples
Exemplo n.º 2
0
    def guess_projname(self, allfiles):
        for x in allfiles:
            if x.ext in version.all_sketch_extensions() and "setup" in x.text() and "loop" in x.text():
                projname = x.namebase
                break

        assert projname
        return projname
Exemplo n.º 3
0
    def guess_projname(self, allfiles):
        for x in allfiles:
            if x.ext in version.all_sketch_extensions() and 'setup' in x.text(
            ) and 'loop' in x.text():
                projname = x.namebase
                break

        assert projname
        return projname