settings.py 282 字节
Newer Older
1 2 3 4 5
from __future__ import annotations
import argparse

gConfig:    argparse.Namespace 

6 7 8 9 10 11 12 13 14 15
class Settings:
    @classmethod    
    def init(cls):
        global gConfig
        gConfig = []

    @classmethod
    def setConfig(cls, config):
        global gConfig
        gConfig = config