mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 00:20:37 +00:00
move script file
This commit is contained in:
15
scripts/combine_control_files.py
Normal file
15
scripts/combine_control_files.py
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user