Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-util/pyfa/files: pyfa-1.1-staticPath.patch
Date: Wed, 30 Nov 2011 18:33:36
Message-Id: 20111130183325.69C2E2004C@flycatcher.gentoo.org
1 tetromino 11/11/30 18:33:25
2
3 Added: pyfa-1.1-staticPath.patch
4 Log:
5 Bump. Adds support for Crucible expansion, fleet boosting, wormhole effects.
6
7 (Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-util/pyfa/files/pyfa-1.1-staticPath.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.1-staticPath.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.1-staticPath.patch?rev=1.1&content-type=text/plain
14
15 Index: pyfa-1.1-staticPath.patch
16 ===================================================================
17 From 9a8411e9a6c58e5285ab3ae0a4feed05b6107acf Mon Sep 17 00:00:00 2001
18 From: Alexandre Rostovtsev <tetromino@g.o>
19 Date: Wed, 30 Nov 2011 12:50:53 -0500
20 Subject: [PATCH] Make staticPath settable from configforced
21
22 ---
23 config.py | 4 +++-
24 1 files changed, 3 insertions(+), 1 deletions(-)
25
26 diff --git a/config.py b/config.py
27 index f2844b5..1f51700 100644
28 --- a/config.py
29 +++ b/config.py
30 @@ -48,7 +48,9 @@ def defPaths():
31 savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")), sys.getfilesystemencoding())
32
33 # Static EVE Data from the staticdata repository, should be in the staticdata directory in our pyfa directory
34 - staticPath = os.path.join(pyfaPath, "staticdata")
35 + staticPath = getattr(configforced, "staticPath", None)
36 + if staticPath is None:
37 + staticPath = os.path.join(pyfaPath, "staticdata")
38
39 # The database where we store all the fits etc
40 saveDB = os.path.join(savePath, "saveddata.db")
41 --
42 1.7.8.rc3