nbulischeck/DCTF

Consider pathlib

robertu94 opened this issue · 2 comments

DCTF/ctf.py

Line 51 in 131832a

def getINIList():

This could be written as:

from  pathlib import Path
defaults = set([“.git”, “skel”])
return (p for p in Path.cwd().glob(“**/config.ini) if not defaults & set(p.parts))

LGTM