GitSpec / backend /crawl.py
Lumiin0us
GitSpec Initial Deployment
34b79cd
raw
history blame contribute delete
366 Bytes
import os
def repoCrawler(folderName):
scriptDir = os.path.dirname(os.path.abspath(__file__))
pythonFiles = []
for (root,dirs,files) in os.walk(os.path.join(scriptDir, folderName),topdown=True):
for file in files:
if file.lower().endswith('.py'):
pythonFiles.append(os.path.join(root, file))
return pythonFiles