Esempio n. 1
0
def _init(status, conf):
    # From download.py
    __this.status = status
    __this.conf = conf

    account = conf['account']
    folder = conf['folder']
    product = conf['product']

    # Init supported classes
    __this.GIS = GIS(status, conf)
    __this.Dtime = Dtime(status, conf)
    __this.Log = Log(conf['log'])

    return account, folder, product
Esempio n. 2
0
def _init(status, conf):
    # From download.py
    __this.status = status
    __this.conf = conf
    __this.path = os.path.join(
        os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe())))

    account = conf['account']
    folder = conf['folder']
    product = conf['product']

    # Init supported classes
    __this.GIS = GIS(status, conf)
    __this.Dtime = Dtime(status, conf)
    __this.Log = Log(conf['log'])

    return account, folder, product
Esempio n. 3
0
def _init(status, conf) -> tuple:
    # test = sys.modules
    # print('GIS' in test)

    # From download.py
    __this.status = status
    __this.conf = conf

    account = conf['account']
    folder = conf['folder']
    product = conf['product']

    # Init supported classes
    __this.GIS = GIS(status, conf)
    __this.Dtime = Dtime(status, conf)
    __this.Log = Log(conf['log'])

    return account, folder, product