Merge branch 'fix-list' of khuxkm/tracer into master
This commit is contained in:
commit
c6c2d34b3c
|
@ -40,7 +40,9 @@ def populate():
|
||||||
if os.path.isdir(d):
|
if os.path.isdir(d):
|
||||||
for p in os.listdir(d):
|
for p in os.listdir(d):
|
||||||
rule = d + "/" + p
|
rule = d + "/" + p
|
||||||
name = p.replace(".json", "")
|
name, ext = os.path.splitext(p)
|
||||||
|
if p.startswith(".") or ext not in (".json", ""): # dot file or not .json or extensionless
|
||||||
|
continue # skip file
|
||||||
# print(p, rule, name)
|
# print(p, rule, name)
|
||||||
if p in DB:
|
if p in DB:
|
||||||
DB[name].append(grammar(load_rules(rule)))
|
DB[name].append(grammar(load_rules(rule)))
|
||||||
|
|
Loading…
Reference in New Issue