# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2018 EDF R&D
+# Copyright (C) 2008-2020 EDF R&D
#
# This file is part of SALOME ADAO module
#
logging.debug("-- Starting AdaoYacsSchemaCreator --")
# Check some basics variables
-if "ADAO_ROOT_DIR" not in os.environ:
- logging.fatal("You have to define ADAO_ROOT_DIR")
+if "ADAO_ENGINE_ROOT_DIR" not in os.environ:
+ logging.fatal("You have to define ADAO_ENGINE_ROOT_DIR")
sys.exit(1)
try:
+ import adao
from daYacsSchemaCreator import run
except ImportError as e:
logging.fatal("\n Import of YACS schema creator module failed, the error message is:\n" +