def __init__(self, config):
    self.cfg = config
    self.cfg['SDK_CALLBACK_URL'] = os.environ['SDK_CALLBACK_URL']
    self.cfg['KB_AUTH_TOKEN'] = os.environ['KB_AUTH_TOKEN']
    self.callbackURL = self.cfg['SDK_CALLBACK_URL']
    self.log(('Callback URL: ' + self.callbackURL))
    self.workspaceURL = config[self.URL_WS]
    self.shockURL = config[self.URL_SHOCK]
    self.catalogURL = (config[self.URL_KB_END] + '/catalog')
    self.scratch = os.path.abspath(config['scratch'])
    if (not os.path.exists(self.scratch)):
        os.makedirs(self.scratch)
    pass
def __init__(self, config):
    self.cfg = config
    self.cfg['SDK_CALLBACK_URL'] = os.environ['SDK_CALLBACK_URL']
    self.cfg['KB_AUTH_TOKEN'] = os.environ['KB_AUTH_TOKEN']
    self.callbackURL = self.cfg['SDK_CALLBACK_URL']
    self.log(('Callback URL: ' + self.callbackURL))
    self.workspaceURL = config[self.URL_WS]
    self.shockURL = config[self.URL_SHOCK]
    self.catalogURL = (config[self.URL_KB_END] + '/catalog')
    self.scratch = os.path.abspath(config['scratch'])
    if (not os.path.exists(self.scratch)):
        os.makedirs(self.scratch)
    pass