mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-25 00:54:42 +03:00
22 lines
568 B
Python
22 lines
568 B
Python
from json import dumps
|
|
from pathlib import Path
|
|
|
|
|
|
def main():
|
|
pwd = Path().cwd()
|
|
dir_core = pwd / "src" / "karkas_core"
|
|
dir_modules_standard = pwd / "src" / "karkas_blocks" / "standard"
|
|
dir_modules_external = pwd / "src" / "karkas_blocks" / "external"
|
|
|
|
json = {
|
|
"core": str(dir_core),
|
|
"modules standard": str(dir_modules_standard),
|
|
"modules external": str(dir_modules_external),
|
|
}
|
|
with open("src/paths.json", "w", encoding="utf8") as f:
|
|
f.write(dumps(json, indent=4))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|