summaryrefslogtreecommitdiff
path: root/lib/utils/inkscape.py
blob: c46bcb6de05405205d80005a70fcce338fbd03e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Authors: see git history
#
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later.  See the file LICENSE for details.

import sys
from os.path import expanduser, split

from inkex.utils import get_user_directory


def guess_inkscape_config_path():
    if getattr(sys, 'frozen', None):
        path = split(get_user_directory())[0]
    else:
        path = expanduser("~/.config/inkscape")
    return path