Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ def listen_for_command(errorcode):
else: rescode = os.system(cmd)
return rescode

#def cleanup(reason: str):
# """Cleans up the environment"""
# print(f"Environment clean-up initialized: {reason}")
def cleanup():
"""Cleans up the environment of all variables"""
del errcode
del wdir
del pid
del host
del user
del colors


# Initialization
Expand All @@ -52,5 +57,5 @@ def listen_for_command(errorcode):
errcode = listen_for_command(errcode)
except KeyboardInterrupt:
print("Keyboard Interrupt initialized. Cleaning up...")
# cleanup("Manually initialized exit [KeyboardInterrupt]")
cleanup()
exit(130)