Skip to content

Commit

Permalink
Fixed yet a other issue with the api.starterdir
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 6, 2024
1 parent d0620e1 commit 2aec5de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,16 @@ def create_directories(path_list):
if not executeargs.startdir:
if platform.system() == "Windows":
api.pwd = os.path.expanduser("~")
roaming_folder = os.path.join(os.environ.get("APPDATA"), "cipheros")
roaming_folder = os.path.join(os.environ.get("APPDATA"))
create_directories([roaming_folder])
api.starterdir = roaming_folder
os.chdir(api.pwd)
elif platform.system() == "Linux":
if not debugmode:
api.starterdir = os.path.join(os.path.expanduser("~"),"CipherOS")
api.starterdir = os.path.join(os.path.expanduser("~"))
elif platform.system() == "Darwin":
if not debugmode:
api.starterdir = os.path.join(os.path.expanduser("~"),"CipherOS")
api.starterdir = os.path.join(os.path.expanduser("~"))

if executeargs.startdir:
api.starterdir = executeargs.startdir
Expand Down

0 comments on commit 2aec5de

Please sign in to comment.