File: replace_appdirs_with_platformdirs.patch

package info (click to toggle)
inkscape 1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 402,908 kB
  • sloc: cpp: 547,256; python: 72,677; ansic: 63,355; javascript: 3,864; xml: 2,345; sh: 1,667; makefile: 824; perl: 614
file content (36 lines) | stat: -rw-r--r-- 1,339 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Alexandre Detiste <tchet@debian.org>
Date: Sat, 2 Aug 2025 23:40:57 +0200
Subject: replace_appdirs_with_platformdirs

BugNr: #999496
---
 share/extensions/other/clipart/import_web_image.py | 2 +-
 share/extensions/other/inkman/inkman/utils.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/extensions/other/clipart/import_web_image.py b/share/extensions/other/clipart/import_web_image.py
index 28fdfd7..c80c633 100755
--- a/share/extensions/other/clipart/import_web_image.py
+++ b/share/extensions/other/clipart/import_web_image.py
@@ -33,7 +33,7 @@ warnings.filterwarnings("ignore")
 
 from collections import defaultdict
 from base64 import encodebytes
-from appdirs import user_cache_dir
+from platformdirs import user_cache_dir
 
 import inkex
 from inkex import Style
diff --git a/share/extensions/other/inkman/inkman/utils.py b/share/extensions/other/inkman/inkman/utils.py
index 30a2117..94411bb 100644
--- a/share/extensions/other/inkman/inkman/utils.py
+++ b/share/extensions/other/inkman/inkman/utils.py
@@ -23,7 +23,7 @@ import os
 
 from collections import defaultdict
 from email.parser import FeedParser
-from appdirs import user_cache_dir
+from platformdirs import user_cache_dir
 
 from inkex.inx import InxFile
 from inkex.command import inkscape, ProgramRunError, CommandNotFound