Skip to content

Commit

Permalink
update report template
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Jun 19, 2024
1 parent 44972d6 commit 1e0147c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from importlib.metadata import PackageNotFoundError, import_module
import importlib.metadata
from os.path import dirname, join, realpath
from os.path import dirname, exists, join, realpath
from packaging.version import parse as version_parse
import platform
import sys
Expand Down Expand Up @@ -43,6 +43,9 @@ def get_requirements_dict():
PROJECT_ROOT = dirname(realpath(__file__))
PROJECT_ROOT_UP_TWO = dirname(dirname(PROJECT_ROOT))
REQUIREMENTS_FILE = join(PROJECT_ROOT_UP_TWO, "requirements.txt")
if not exists(REQUIREMENTS_FILE):
REQUIREMENTS_FILE = join(PROJECT_ROOT, "requirements.txt")

d = {}
with open(REQUIREMENTS_FILE) as f:
for line in f:
Expand Down

0 comments on commit 1e0147c

Please sign in to comment.