From e67c20e04df720bc571b49fb2f9bdfb1b151b175 Mon Sep 17 00:00:00 2001 From: Chetanya Goyal <95761876+chetanyagoyal@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:51:12 +0530 Subject: [PATCH] Update test_glayout.py --- openfasoc/generators/glayout/test_glayout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openfasoc/generators/glayout/test_glayout.py b/openfasoc/generators/glayout/test_glayout.py index 877378eb5..5a8e9469e 100644 --- a/openfasoc/generators/glayout/test_glayout.py +++ b/openfasoc/generators/glayout/test_glayout.py @@ -7,6 +7,7 @@ from importlib import metadata from tempfile import TemporaryDirectory import warnings +from typing import Optional sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..')) # used for pretty printing messages @@ -56,7 +57,7 @@ def check_python_version(): print("\nPython version is 3.10 or above!") # check if all requirements have been installed -def check_python_requirements(requirements_file): +def check_python_requirements(requirements_file: Optional[str] = '../../../requirements.txt'): """Check if all Python requirements are installed using the requirements file provided in the top level directory of OpenFASOC. Checks the package versions as well""" print_heading("Checking Python requirements") @@ -165,7 +166,6 @@ def place_nfet_run_lvs(): print_dynamic_separator() check_python_version() print_dynamic_separator() - #check_python_requirements("../../../requirements.txt") check_python_requirements() print_dynamic_separator() miniconda3_path, pdk_root = check_miniconda3_and_pdk()