Skip to content

Commit

Permalink
Merge pull request #159 from sir-sigurd/patch-1
Browse files Browse the repository at this point in the history
Use ternary operator for better readability
  • Loading branch information
zoofood authored Jan 28, 2021
2 parents 1e126c5 + 4835788 commit c5c478e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appdirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def user_data_dir(appname=None, appauthor=None, version=None, roaming=False):
if system == "win32":
if appauthor is None:
appauthor = appname
const = roaming and "CSIDL_APPDATA" or "CSIDL_LOCAL_APPDATA"
const = "CSIDL_APPDATA" if roaming else "CSIDL_LOCAL_APPDATA"
path = os.path.normpath(_get_win_folder(const))
if appname:
if appauthor is not False:
Expand Down

0 comments on commit c5c478e

Please sign in to comment.