示例#1
0
文件: cli.py 项目: cakebread/jindo
 def __init__(self, api_key=None):
     #PyPI project name with proper case
     self.options = None
     self.logger = logging.getLogger("jindo")
     self.ansi = True
     if api_key:
         self.api_key = api_key
     else:
         #Obviously not going to work if we add more options.
         self.api_key = get_rc_file().split("=")[1].strip()
     self.jindo = JindoProxy()
示例#2
0
文件: cli.py 项目: chason/jindo
 def __init__(self):
     #PyPI project name with proper case
     self.options = None
     self.logger = logging.getLogger("jindo")
     self.api_key = get_rc_file().split("=")[1].strip()