1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/games/pysolfc/pysolfc-datadir.patch
Kier Davis cb9bf1c854 PySolFC: init at 2.0
PySolFC is a solitaire game written in Python, supporting thousands of
solitaire variants.
2017-11-25 09:43:42 +01:00

20 lines
775 B
Diff

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