From e50db53fe052651ce433ff1ea2aebb0b9a8df736 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Wed, 14 Sep 2016 13:29:07 +0200 Subject: [PATCH] sat generate: fix bug when getting python version --- commands/generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/generate.py b/commands/generate.py index a08a4b3..b2eadfe 100644 --- a/commands/generate.py +++ b/commands/generate.py @@ -281,7 +281,8 @@ def check_yacsgen(config, directory, logger): pv = os.getenv("PYTHON_VERSION") if pv is None: - pv = '.'.join(config.PRODUCT.prerequis["Python"].split('.')[:2]) + python_info = src.product.get_product_config(config, "Python") + pv = '.'.join(python_info.version.split('.')[:2]) assert pv is not None, "$PYTHON_VERSION not defined" yacsgen_dir = os.path.join(yacsgen_dir, "lib", "python%s" % pv, "site-packages") -- 2.39.2