-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_config.py
More file actions
26 lines (24 loc) · 806 Bytes
/
build_config.py
File metadata and controls
26 lines (24 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from os import getcwd, name
from os.path import join
from json import dump
from sys import exit
with open("config_TestWebScriptsTools.json", "w") as file:
dump(
{
"scripts": {"TestWebScriptsTools": "config"},
"config": {
"launcher": "python3" if name != "nt" else "python",
"category": "Tests",
"path": join(getcwd(), "test.py"),
},
},
file,
)
print(
"Move the config_TestWebScriptsTools.json file to a "
"WebScripts configuration path.\nPlease remove it after"
" testing, this script configuration is not secure and"
" not hardened, and this script prints information about"
" your platform, WebScripts server, and configuration."
)
exit(0)