-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtesting.py
34 lines (31 loc) · 857 Bytes
/
testing.py
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
27
28
29
30
31
32
33
34
import json, sys
if len(sys.argv) != 3:
print("No path and username specified")
exit()
directory = sys.argv[1]
username = sys.argv[2]
# mod.json object
mod_json_obj = {
"namespace": "CodaFlavors",
"displayName": "Coda Flavors",
"version": "1.0.0",
"synchronyVersion": "3.6.1",
"description": "A whole new world of Coda with a hint of Aria. (TESTING VERSION)\n",
"author": username,
"dependencies": {},
"api": {"scriptPath":""},
"icon": "logo/CodaFlavorsIcon.png",
"banner": "logo/CodaFlavorsBanner.png",
"tags": [],
"name": "CodaFlavors",
"changelog": "",
"homepageURL": "https://mod.io/g/crypt/m/codaflavors",
"modioID": "",
"modioUserID": 13142250,
"pendingVersion": "1.0.3",
"visibility": 0
}
# Write mod.json
file_path = directory + "/mod.json"
with open(file_path, 'w') as f:
f.write(json.dumps(mod_json_obj, indent=4))