add eos config option for all effects
This commit is contained in:
@@ -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:'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user