Skip to content

Commit

Permalink
Try pathlib Home instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Apr 30, 2021
1 parent 8961966 commit 7db533e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ada/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import os
import pathlib
import sys


def _get_platform_home():
"""
:return:
"""
# _platform_home = dict(win32="C:/ADA", linux="/home/ADA", linux2="/home/ADA", macos="/home/ADA")
# return _platform_home[sys.platform]

_platform_home = dict(win32="C:/ADA", linux="/home/ADA", linux2="/home/ADA", macos="/home/ADA")
return _platform_home[sys.platform]
return pathlib.Path.home() / "ADA"


class Settings:
Expand Down

0 comments on commit 7db533e

Please sign in to comment.