forked from SCE-Development/Clark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (16 loc) · 802 Bytes
/
setup.py
File metadata and controls
19 lines (16 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import platform
import os
print('Welcome to SCE-Development Setup!\n')
user_os = platform.system()
print('Detected OS: {}'.format(user_os))
if user_os == 'Darwin' or user_os == 'Linux':
if os.path.exists("api/config/config.json") == False:
os.system("cp api/config/config.example.json api/config/config.json")
if os.path.exists("src/config/config.json") == False:
os.system("cp src/config/config.example.json src/config/config.json")
elif user_os == 'Windows':
if os.path.exists("api\config\config.json") == False:
os.system("copy api\config\config.example.json api\config\config.json")
if os.path.exists("src\config\config.json") == False:
os.system("copy src\config\config.example.json src\config\config.json")
print('\nSetup complete! Bye!\n')