photoqt: 4.6 -> 4.7 (#361171)
[NixPkgs.git] / pkgs / games / pysolfc / pysolfc-datadir.patch
blobd9f1cf4e09f50bf318b3969f77494f7d1b02dc9c
1 diff --git a/pysollib/util.py b/pysollib/util.py
2 index 8de3f00..26f4bc7 100644
3 --- a/pysollib/util.py
4 +++ b/pysollib/util.py
5 @@ -110,13 +110,7 @@ class DataLoader:
6 head, tail = os.path.split(argv0)
7 if not head:
8 head = os.curdir
9 - # dir where placed startup script
10 - path.append(head)
11 - path.append(os.path.join(head, "data"))
12 - path.append(os.path.join(head, os.pardir, "data"))
13 - # dir where placed pysol package
14 - path.append(os.path.join(sys.path[0], "data"))
15 - path.append(os.path.join(sys.path[0], "pysollib", "data"))
16 + path.append(os.path.join(head, "..", "share", "PySolFC"))
17 # from settings.py
18 path.extend(DATA_DIRS)
19 # check path for valid directories