Skip to content

Commit

Permalink
Merge pull request #316 from chetanyagoyal/patch-2
Browse files Browse the repository at this point in the history
Update test_glayout.py
  • Loading branch information
msaligane authored Jun 6, 2024
2 parents 5e9163a + e67c20e commit d320718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfasoc/generators/glayout/test_glayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d320718

Please sign in to comment.