I saw some posts on this but it didn't really answer my question This is my code:
if os.path.exists(KEYSAVE_PATH):
with open (KEYSAVE_PATH, "r") as file:
data = file.readline()
keyauthapp.login(data)
else:
key = input('Key: ')
keyauthapp.login(key)
keysave = open(KEYSAVE_PATH, "w")
n = keysave.write(key)
keysave.close()
/////MY CODE\\\\\
/////MY CODE\\\\\ is my code basically when I run this it runs smoothly but when I get to the end of the if it just stops and ends my program there aren't any errors it just thinks its the end of my project how do I make after the keyauthapp.login(data) it skips to my code bellow the else statement.
Aucun commentaire:
Enregistrer un commentaire