All pastes #452661 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-22 13:01 UTC
rendered paste body
def findPyc():
    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"):
                    [x for x in path if x.find(".pyc") > 0]
                    fileList = [x for x in path if x.find(".pyc") > 0]
                    print fileList