45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
|
diff --git a/config.py b/config.py
|
||
|
index b15c30a3..7d39ec7a 100644
|
||
|
--- a/config.py
|
||
|
+++ b/config.py
|
||
|
@@ -29,6 +29,7 @@ pyfaPath = None
|
||
|
savePath = None
|
||
|
saveDB = None
|
||
|
gameDB = None
|
||
|
+imgsZIP = None
|
||
|
logPath = None
|
||
|
|
||
|
|
||
|
@@ -61,6 +62,7 @@ def defPaths(customSavePath):
|
||
|
global savePath
|
||
|
global saveDB
|
||
|
global gameDB
|
||
|
+ global imgsZIP
|
||
|
global saveInRoot
|
||
|
|
||
|
pyfalog.debug("Configuring Pyfa")
|
||
|
@@ -100,6 +102,10 @@ def defPaths(customSavePath):
|
||
|
if not gameDB:
|
||
|
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 eb53b1f1..86036001 100644
|
||
|
--- a/gui/bitmapLoader.py
|
||
|
+++ b/gui/bitmapLoader.py
|
||
|
@@ -37,7 +37,7 @@ except ImportError:
|
||
|
|
||
|
class BitmapLoader(object):
|
||
|
try:
|
||
|
- archive = zipfile.ZipFile(os.path.join(config.pyfaPath, 'imgs.zip'), 'r')
|
||
|
+ archive = zipfile.ZipFile(config.imgsZIP, 'r')
|
||
|
logging.info("Using zipped image files.")
|
||
|
except IOError:
|
||
|
logging.info("Using local image files.")
|