mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
parent
956c4be7e5
commit
e1aaa3ce93
2 changed files with 5 additions and 5 deletions
|
@ -133,17 +133,17 @@ orig_path = None
|
||||||
|
|
||||||
|
|
||||||
def get_default_cachedir():
|
def get_default_cachedir():
|
||||||
"""Get a cachedir, using appdirs for cross-platform, but works without.
|
"""Get a cachedir, using platformdirs for cross-platform, but works without.
|
||||||
|
|
||||||
Once appdirs is installed everywhere, this function can be
|
Once platformdirs is installed everywhere, this function can be
|
||||||
removed.
|
removed.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
appname = __name__.split('.')[0]
|
appname = __name__.split('.')[0]
|
||||||
try:
|
try:
|
||||||
import appdirs
|
import platformdirs
|
||||||
|
|
||||||
return appdirs.user_cache_dir(appname, 'F-Droid')
|
return platformdirs.user_cache_dir(appname, 'F-Droid')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return str(Path.home() / '.cache' / appname)
|
return str(Path.home() / '.cache' / appname)
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -91,7 +91,7 @@ setup(
|
||||||
'babel',
|
'babel',
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'appdirs',
|
'platformdirs',
|
||||||
'androguard >= 3.3.5',
|
'androguard >= 3.3.5',
|
||||||
'asn1crypto',
|
'asn1crypto',
|
||||||
'clint',
|
'clint',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue