Skip to content

Commit bc9df23

Browse files
resolve conversation
1 parent 1b10232 commit bc9df23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

exasol/toolbox/tools/security.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
Iterable,
1616
Tuple,
1717
)
18-
from noxconfig import PROJECT_CONFIG
1918
import typer
2019
from pathlib import Path
2120

@@ -101,7 +100,7 @@ def from_maven(report: str) -> Iterable[Issue]:
101100
)
102101

103102

104-
def from_json(report_str: str, prefix: Path = PROJECT_CONFIG.root) -> Iterable[Issue]:
103+
def from_json(report_str: str, prefix: Path) -> Iterable[Issue]:
105104
report = json.loads(report_str)
106105
issues = report.get("results", {})
107106
for issue in issues:
@@ -313,7 +312,7 @@ def json_issue_to_markdown(
313312
json_file: typer.FileText = typer.Argument(default="", mode="r", help="json file with issues to convert"),
314313
) -> None:
315314
content = json_file.read()
316-
issues = from_json(content)
315+
issues = from_json(content, Path(__file__).parent.parent.parent.parent)
317316
print(issues_to_markdown(issues))
318317

319318

0 commit comments

Comments
 (0)