karkas/scripts/init.py

22 lines
564 B
Python
Raw Normal View History

2024-07-10 19:30:23 +03:00
from json import dumps
from pathlib import Path
def main():
pwd = Path().cwd()
dir_core = pwd / "src" / "ocab_core"
dir_modules_standard = pwd / "src" / "ocab_modules" / "standard"
2024-07-14 17:07:46 +03:00
dir_modules_external = pwd / "src" / "ocab_modules" / "external"
2024-07-10 19:30:23 +03:00
json = {
"core": str(dir_core),
"modules standard": str(dir_modules_standard),
2024-07-14 17:07:46 +03:00
"modules external": str(dir_modules_external),
2024-07-10 19:30:23 +03:00
}
with open("src/paths.json", "w", encoding="utf8") as f:
f.write(dumps(json, indent=4))
if __name__ == "__main__":
main()