mirror of
https://gitflic.ru/project/maks1ms/ocab.git
synced 2024-12-24 00:33:05 +03:00
22 lines
556 B
Python
22 lines
556 B
Python
|
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"
|
||
|
dir_modules_custom = pwd / "src" / "ocab_modules" / "custom"
|
||
|
|
||
|
json = {
|
||
|
"core": str(dir_core),
|
||
|
"modules standard": str(dir_modules_standard),
|
||
|
"modules custom": str(dir_modules_custom),
|
||
|
}
|
||
|
with open("src/paths.json", "w", encoding="utf8") as f:
|
||
|
f.write(dumps(json, indent=4))
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|