-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcmdc_cui_main.py
42 lines (33 loc) · 1.22 KB
/
mcmdc_cui_main.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
35
36
37
38
39
40
41
42
import sys
from MCMDC.constants import *
# LOGMODE_LOADING_OHEADER = '[ProgramLoad]: '
if __name__ == "__main__":
from MCMDC import DebugMode
ifDebug = DebugMode.DEBUGMODE_NORMAL
for i in sys.argv:
if i == '-enableGlobalDebug':
ifDebug = DebugMode.DEBUGMODE_GDEBUG
sys.argv.remove('-enableGlobalDebug')
print(f'{LOGMODE_LOADING_OHEADER}Debug Mode is set to "Global Debug".')
if i == '-enableDebug':
ifDebug = DebugMode.DEBUGMODE_DEBUG
sys.argv.remove('-enableDebug')
print(f'{LOGMODE_LOADING_OHEADER}Debug Mode is set to "Debug".')
DebugMode.initDefault_gmode(ifDebug)
pass
# initDefault_gmode(DEBUGMODE_GDEBUG)
print(f'{LOGMODE_LOADING_OHEADER}Haven\'t import all.')
from MCMDC.pkg_init import *
print(f'{LOGMODE_LOADING_OHEADER}Import all done.')
from MCMDC.DebugMode import *
if __name__ == "__main__":
args: dict = main.processArgs(sys.argv)
main.applyArgs(args)
main.filedir = args.get('dir')
# print('exists: ', os.path.exists(filedir))
# print('isSetDir: ', isSetDir)
main.responseArgs()
# 忽略默认
# toIgnore = True
# IgnoreList = ['forge', 'minecraft']
main.main(main.filedir)