From 7b7fa8ae3c8f79dd834ba22d955bc5591a88936d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Czarnecki?= Date: Tue, 14 Jun 2022 17:01:44 +0200 Subject: [PATCH] init: disable prjxray requirement in common code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Czarnecki --- f4pga/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/f4pga/__init__.py b/f4pga/__init__.py index 4bfeca3..ee26f47 100755 --- a/f4pga/__init__.py +++ b/f4pga/__init__.py @@ -531,11 +531,14 @@ def setup_resolution_env(): """ Generate initial values, available in configs. """ - return { - 'prjxray_db': common_sub('prjxray-config').decode().replace('\n', ''), + conf = { 'python3': common_sub('which', 'python3').decode().replace('\n', ''), 'noisyWarnings': _noisy_warnings() } + if (FPGA_FAM == 'xc7'): + conf['prjxray_db'] = common_sub('prjxray-config').decode().replace('\n', '') + + return conf r_env.add_values(_generate_values()) return r_env