assim não funciona
def fa():
loginfile = os.path.join(profile, 'login'
username = open(loginfile, "r".read()
passwordfile = os.path.join(profile, 'password'
password = open(passwordfile, "r".read()
if username == "" or password == "":
dologin()
else:
success, tempo, erro = login(username, password, cookiepath)
if tempo=='0' and erro=='':
sys.exit(aviso('vencido')
elif not erro=='':
falha = aviso(erro)
if (falha == True):
dologin()
elif not tempo=='0':
getSources()
if tempo>1:
dia = 'dias'
else:
dia = 'dia'
aviso('Voce ainda pode usar por '+tempo+dia+''
assim funciona
def fa():
loginfile = os.path.join(profile, 'login'
username = open(loginfile, "r".read()
passwordfile = os.path.join(profile, 'password'
password = open(passwordfile, "r".read()
if username == "" or password == "":
dologin()
else:
success, tempo, erro = login(username, password, cookiepath)
if tempo=='0' and erro=='':
sys.exit(aviso('vencido')
elif not erro=='':
falha = aviso(erro)
if (falha == True):
dologin()
elif not tempo=='0':
getSources()
dia = ' dia'
dd = aviso('Voce ainda pode usar por '+tempo+dia+''