Added Windows logic for sessions so people can test on windows

This commit is contained in:
zkwolf 2024-05-13 11:32:08 +02:00
parent c0c663a02f
commit e207da54db

View File

@ -155,6 +155,9 @@ class Session_Manager:
def setup(self):
print("Setting up Session Manager")
# if windows set C:\tmp\sessions.json
if os.name == "nt":
self.session_file_path = f"C:/tmp/{self.session_file}"
print(f"Session File Path: {self.session_file_path}")
if not os.path.exists(self.session_file_path):
print("Session File not found, creating new one.")