All pastes #452665 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-22 13:05 UTC
rendered paste body
def findPyc():
    l = []
    for file_xml in findFilexml(folder):
        filexml = open(file_xml).readlines()

        for file in filexml:
            if file.find("Path") > 0:
                path = file.split("<Path>")[1].split("</Path>")[0]
                path = os.path.join("/", path)
                if path.endswith(".pyc"):
                    l.append(path)