Esempio n. 1
0
 def get_account_password(self, sender):
     try:
         username, password = console.login_alert('请输入账号密码')
     except KeyboardInterrupt:
         self.close()
     if username and password:
         renew_account(username, password)
         renew()
         init_config()
         create_db()
         get_favcat()
         import conf.global_variables as glv
         glv.init()
         self.present_listview()
         self.close()
Esempio n. 2
0
import os
import sys

from parse.exhentaiparser import CONFIGPATH, COOKIE_FILE
from core.welcome import welcome
from core.utility import get_latest_version

if __name__ == '__main__':
    get_latest_version()
    if not os.path.exists(CONFIGPATH) or not os.path.exists(COOKIE_FILE):
        welcome()
    else:
        import conf.global_variables as glv
        from core.galleryview import galleryview
        from core.listview import listview
        glv.init()
        if len(sys.argv) > 1:
            gallery_url = sys.argv[1]
            galleryview(gallery_url)
        else:
            listview()