1 |
tetromino 14/02/05 06:17:45 |
2 |
|
3 |
Added: pyfa-1.1.20-staticPath.patch |
4 |
Removed: pyfa-1.1-staticPath.patch |
5 |
Log: |
6 |
Version bump for Rubicon 1.1; remove obsolete version. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 games-util/pyfa/files/pyfa-1.1.20-staticPath.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.1.20-staticPath.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.1.20-staticPath.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: pyfa-1.1.20-staticPath.patch |
17 |
=================================================================== |
18 |
From 69660180a59d0d100097dedbc507d4af73267e8d Mon Sep 17 00:00:00 2001 |
19 |
From: Alexandre Rostovtsev <tetromino@g.o> |
20 |
Date: Wed, 30 Nov 2011 12:50:53 -0500 |
21 |
Subject: [PATCH] Make staticPath settable from configforced |
22 |
|
23 |
--- |
24 |
config.py | 4 +++- |
25 |
1 file changed, 3 insertions(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/config.py b/config.py |
28 |
index e39e0d3..e028c36 100644 |
29 |
--- a/config.py |
30 |
+++ b/config.py |
31 |
@@ -66,7 +66,9 @@ def defPaths(): |
32 |
|
33 |
# Static EVE Data from the staticdata repository, should be in the staticdata |
34 |
# directory in our pyfa directory |
35 |
- staticPath = os.path.join(pyfaPath, "staticdata") |
36 |
+ staticPath = getattr(configforced, "staticPath", None) |
37 |
+ if staticPath is None: |
38 |
+ staticPath = os.path.join(pyfaPath, "staticdata") |
39 |
|
40 |
# The database where we store all the fits etc |
41 |
saveDB = os.path.join(savePath, "saveddata.db") |
42 |
-- |
43 |
1.8.5.3 |