Commit 73585b60 by Rayan Das Committed by Steph Samson

consider using if expression

Signed-off-by: Rayan Das <rayandas91@gmail.com>
parent cc195f1d
...@@ -92,7 +92,7 @@ def user_data_dir(appname, roaming=False): ...@@ -92,7 +92,7 @@ def user_data_dir(appname, roaming=False):
That means, by default "~/.local/share/<AppName>". That means, by default "~/.local/share/<AppName>".
""" """
if WINDOWS: if WINDOWS:
const = roaming and "CSIDL_APPDATA" or "CSIDL_LOCAL_APPDATA" const = "CSIDL_APPDATA" if roaming else "CSIDL_LOCAL_APPDATA"
path = os.path.join(os.path.normpath(_get_win_folder(const)), appname) path = os.path.join(os.path.normpath(_get_win_folder(const)), appname)
elif sys.platform == "darwin": elif sys.platform == "darwin":
path = os.path.join(expanduser("~/Library/Application Support/"), appname) path = os.path.join(expanduser("~/Library/Application Support/"), appname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment