daemon: Use Emane.version directly instead of checking if EventService

exists.
This commit is contained in:
Tom Goff 2015-09-30 14:41:13 -04:00
parent 026f54d658
commit 3a13b8c92d
5 changed files with 11 additions and 11 deletions

View file

@ -18,7 +18,7 @@ except:
pass
from core.api import coreapi
from core.constants import *
from emane import EmaneModel
from emane import Emane, EmaneModel
try:
import emaneeventservice
@ -53,7 +53,7 @@ class EmaneCommEffectModel(EmaneModel):
("defaultconnectivitymode", coreapi.CONF_DATA_TYPE_BOOL, '0',
'On,Off', 'defaultconnectivity'),
]
if 'EventService' in globals():
if Emane.version >= Emane.EMANE091:
_confmatrix_shim = _confmatrix_shim_base + _confmatrix_shim_091
else:
_confmatrix_shim = _confmatrix_shim_base + _confmatrix_shim_081