mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-07-18 17:03:48 -05:00
Added Windows logic for sessions so people can test on windows
This commit is contained in:
parent
c0c663a02f
commit
e207da54db
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user