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