Skip to content

Commit

Permalink
Fallback to appdir if platformdir is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Jan 23, 2025
1 parent 31e05cb commit 1ef2f37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dangerzone/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import traceback
import unicodedata

import platformdir
try:
import platformdir
except ImportError:
import appdirs as platformdir


def get_config_dir() -> str:
Expand Down

0 comments on commit 1ef2f37

Please sign in to comment.