Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 466704 Details for
Bug 612316
games-util/pyfa-1.27.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pyfa-1.27.2-staticdata.patch
pyfa-1.27.2-staticdata.patch (text/plain), 1.42 KB, created by
Oded Niv
on 2017-03-11 14:47:45 UTC
(
hide
)
Description:
pyfa-1.27.2-staticdata.patch
Filename:
MIME Type:
Creator:
Oded Niv
Created:
2017-03-11 14:47:45 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/config.py b/config.py >index 32c68764..ad0215e9 100644 >--- a/config.py >+++ b/config.py >@@ -28,6 +28,7 @@ pyfaPath = None > savePath = None > saveDB = None > gameDB = None >+imgsZIP = None > > > class StreamToLogger(object): >@@ -64,6 +65,7 @@ def defPaths(customSavePath): > global savePath > global saveDB > global gameDB >+ global imgsZIP > global saveInRoot > > if debug: >@@ -122,7 +124,13 @@ def defPaths(customSavePath): > # The database where the static EVE data from the datadump is kept. > # This is not the standard sqlite datadump but a modified version created by eos > # maintenance script >- gameDB = os.path.join(pyfaPath, "eve.db") >+ gameDB = getattr(configforced, "gameDB", None) >+ if gameDB is None: >+ gameDB = os.path.join(pyfaPath, "eve.db") >+ >+ imgsZIP = getattr(configforced, "imgsZIP", None) >+ if imgsZIP is None: >+ imgsZIP = os.path.join(pyfaPath, "imgs.zip") > > # DON'T MODIFY ANYTHING BELOW! > import eos.config >diff --git a/gui/bitmapLoader.py b/gui/bitmapLoader.py >index cb47e24b..d3b1b55f 100644 >--- a/gui/bitmapLoader.py >+++ b/gui/bitmapLoader.py >@@ -35,7 +35,7 @@ except ImportError: > > class BitmapLoader(object): > try: >- archive = zipfile.ZipFile(os.path.join(config.pyfaPath, 'imgs.zip'), 'r') >+ archive = zipfile.ZipFile(config.imgsZIP, 'r') > except IOError: > archive = None >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 612316
: 466704