Source code for fmeTestSupport.PythonTestUtils

# Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
# **InsertLicense** code

[docs]def isMeVisLabAvailable(): """ :return: TRUE if running in a MeVisLab python environment """ def __tryImportMLAB(): _mlab = globals().get( "MLAB", None ) try: from mevis import MLAB _mlab = MLAB except ImportError: pass return _mlab # mlab = __tryImportMLAB() return mlab is not None and hasattr(mlab, "systemId") and mlab.systemId() != ''