ARC-9/.Stuff for developers/folderlist.py
grande1900 323c34e678 folder list script + fix firemode glyph + forgot loc
script for listing a glob to a dictionary table
fix the firemode glyph on the hud
some loc stuff
2024-01-09 08:32:25 -05:00

11 lines
325 B
Python

# btw this doesn't read subfolders even if you use **
import glob, os
pydir = os.getcwd()
os.chdir(input("Work dir:\n"))
with open(pydir+"/list.txt","w") as f:
f.writelines("{\n")
for txt in glob.glob(input("Filter:\n")):
print(txt)
f.writelines(f" [\"{txt}\"] = true,\n")
f.writelines("}\n")