Merge branch 'master' into ammo_graph
This commit is contained in:
@@ -19,7 +19,12 @@
|
||||
|
||||
import config
|
||||
|
||||
versionString = "{0}".format(config.version)
|
||||
try:
|
||||
versionString = "{0}".format(config.getVersion())
|
||||
except NameError:
|
||||
# is caught in case we run test and there are no config values initialized
|
||||
versionString = "0.0"
|
||||
|
||||
licenses = (
|
||||
"pyfa is released under GNU GPLv3 - see included LICENSE file",
|
||||
"All EVE-Online related materials are property of CCP hf.",
|
||||
|
||||
@@ -33,12 +33,17 @@ pyfalog = Logger(__name__)
|
||||
|
||||
|
||||
class BitmapLoader:
|
||||
try:
|
||||
archive = zipfile.ZipFile(config.imgsZIP, 'r')
|
||||
pyfalog.info("Using zipped image files.")
|
||||
except (IOError, TypeError):
|
||||
# Can be None if we're running from tests
|
||||
if config.imgsZIP is None:
|
||||
pyfalog.info("Using local image files.")
|
||||
archive = None
|
||||
else:
|
||||
try:
|
||||
archive = zipfile.ZipFile(config.imgsZIP, 'r')
|
||||
pyfalog.info("Using zipped image files.")
|
||||
except (IOError, TypeError):
|
||||
pyfalog.info("Using local image files.")
|
||||
archive = None
|
||||
|
||||
cached_bitmaps = OrderedDict()
|
||||
dont_use_cached_bitmaps = False
|
||||
|
||||
Reference in New Issue
Block a user