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.
if
it just stops and ends my program. There are no errors. It just thinks it is the end of my project. How do I make the code continue executing the code below theelse
after thekeyauthapp.login(data)
statement ?