diff --git a/eos/config.py b/eos/config.py index c6c53f748..2f7807a36 100644 --- a/eos/config.py +++ b/eos/config.py @@ -15,6 +15,8 @@ gamedata_date = "" gamedata_connectionstring = 'sqlite:///' + realpath(join(dirname(abspath(__file__)), "..", "eve.db")) pyfalog.debug("Gamedata connection string: {0}", gamedata_connectionstring) +use_all_effect_module = True + if istravis is True or hasattr(sys, '_called_from_test'): # Running in Travis. Run saveddata database in memory. saveddata_connectionstring = 'sqlite:///:memory:' diff --git a/eos/gamedata.py b/eos/gamedata.py index 41e700e48..e07d43aa9 100644 --- a/eos/gamedata.py +++ b/eos/gamedata.py @@ -20,7 +20,7 @@ import re from sqlalchemy.orm import reconstructor - +import eos.config as config import eos.db from .eqBase import EqBase from eos.saveddata.price import Price as types_Price @@ -161,7 +161,7 @@ class Effect(EqBase): if it doesn't, set dummy values and add a dummy handler """ try: - if all_effects_module: + if all_effects_module and config.use_all_effect_module: func = getattr(all_effects_module, self.handlerName) self.__effectModule = effectModule = func() self.__handler = effectModule.get("handler", effectDummy)