diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-01-12 18:19:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-12 18:19:10 +0100 |
| commit | d0455f28ac2fe687ebe9276a0aebbf51d37818ee (patch) | |
| tree | 43eae8e2e8a48fa8ecdb5c570b219b78546426b0 /lib/utils/inkscape.py | |
| parent | 60664cc1c1b2465b935924dc36b255161135374b (diff) | |
inkscape config path (#1532)
Diffstat (limited to 'lib/utils/inkscape.py')
| -rw-r--r-- | lib/utils/inkscape.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/utils/inkscape.py b/lib/utils/inkscape.py index 62442650..c46bcb6d 100644 --- a/lib/utils/inkscape.py +++ b/lib/utils/inkscape.py @@ -4,18 +4,14 @@ # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. import sys -from os.path import expanduser, realpath +from os.path import expanduser, split + +from inkex.utils import get_user_directory def guess_inkscape_config_path(): if getattr(sys, 'frozen', None): - path = realpath(sys._MEIPASS.split('extensions', 1)[0]) - if sys.platform == "win32": - import win32api - - # This expands ugly things like EXTENS~1 - path = win32api.GetLongPathName(path) + path = split(get_user_directory())[0] else: path = expanduser("~/.config/inkscape") - return path |
