Package: pysolfc / 2.6.4-3

directories Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Change some data and doc locations
Author: Bernhard Reiter <ockham@raz.or.at>

--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@
     import py2exe  # noqa: F401
 
 if os.name == 'posix':
-    data_dir = 'share/PySolFC'
+    data_dir = 'share/games/pysolfc'
 elif os.name == 'nt':
     data_dir = 'data'
 else:
--- a/pysollib/settings.py
+++ b/pysollib/settings.py
@@ -61,10 +61,7 @@
 # you can add your extra directories here
 if os.name == 'posix':
     DATA_DIRS = [
-        '/usr/share/PySolFC',
-        '/usr/local/share/PySolFC',
-        '/usr/games/PySolFC',
-        '/usr/local/games/PySolFC',
+        '/usr/share/games/pysolfc',
         ]
 if os.name == 'nt':
     pass
--- a/pysollib/mfxutil.py
+++ b/pysollib/mfxutil.py
@@ -139,7 +139,7 @@
     home = os.environ.get("HOME", "").strip()
     if not home or not os.path.isdir(home):
         home = os.curdir
-    return os.path.join(home, ".PySolFC")
+    return os.path.join(home, ".pysolfc")
 
 
 # high resolution clock() and sleep()