示例#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
示例#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
示例#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