Salome HOME
begin fix sat test
[tools/sat.git] / commands / generate.py
index f0d1175fb666385b64c0ac93eaa8a874a55a387b..a8d2dc969502d2e62b6b01834fd706ac617b9c2d 100644 (file)
@@ -271,7 +271,7 @@ def check_yacsgen(config, directory, logger):
         yacsgen_info = src.product.get_product_config(config, 'YACSGEN')
         yacsgen_dir = yacsgen_info.install_dir
         yacs_src = _("Using YACSGEN from application")
-    elif os.environ.has_key("YACSGEN_ROOT_DIR"):
+    elif "YACSGEN_ROOT_DIR" in os.environ:
         yacsgen_dir = os.getenv("YACSGEN_ROOT_DIR")
         yacs_src = _("Using YACSGEN from environment")