mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2025-10-05 12:18:28 +03:00
Merged with private/new-module-system
This commit is contained in:
0
scripts/__init__.py
Normal file
0
scripts/__init__.py
Normal file
21
scripts/init.py
Normal file
21
scripts/init.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
9
scripts/test.py
Normal file
9
scripts/test.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import subprocess # nosec
|
||||
|
||||
|
||||
def main():
|
||||
subprocess.run(["python", "-u", "-m", "unittest", "discover"]) # nosec
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Reference in New Issue
Block a user