Skip to content

Commit 22a7787

Browse files
feat: Replaced deprecated appdirs with platformdirs (#29)
Co-authored-by: Octavian Ionescu <octavian.ionescu@backlight.co>
1 parent abdd4e2 commit 22a7787

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

doc/release/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Release Notes
1616

1717
.. release:: Upcoming
1818

19+
.. change:: changed
20+
:tags: path resolve
21+
22+
Replaced deprecated appdirs with platformdirs.
23+
1924
.. change:: changed
2025
:tags: events, security
2126

source/ftrack_api/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import requests.utils
3131
import arrow
3232
import clique
33-
import appdirs
33+
import platformdirs
3434

3535
import ftrack_api
3636
import ftrack_api.exception
@@ -327,7 +327,7 @@ def __init__(
327327
# rebuilding types)?
328328
if schema_cache_path is not False:
329329
if schema_cache_path is None:
330-
schema_cache_path = appdirs.user_cache_dir()
330+
schema_cache_path = platformdirs.user_cache_dir()
331331
schema_cache_path = os.environ.get(
332332
'FTRACK_API_SCHEMA_CACHE_PATH', schema_cache_path
333333
)

0 commit comments

Comments
 (0)