move script file

This commit is contained in:
Alek Westover
2023-07-10 13:13:01 -04:00
parent d33bfb130d
commit 4b96e19e44
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
import json
import os
index = {}
os.chdir("control_files")
for prefix in os.listdir("."):
for file in os.listdir(prefix):
with open(fname, "r") as f:
ext_name = fname.replace(".control", "")
control = f.read()
index[ext_name] = {
"path": f"{prefix}/{ext_name}.tar.gz",
"control": control
}