Skip to content

Commit c3bb316

Browse files
authored
Merge pull request #13 from superannotateai/develop
Update base schema
2 parents cb06275 + 0e3b63c commit c3bb316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/superannotate_schemas/bin/interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
from os.path import expanduser
23
import json
34
import errno
45
from pathlib import Path
@@ -61,7 +62,7 @@ def validate(*paths, project_type, internal=False, verbose=False, report_path=No
6162
if verbose:
6263
print(f"{'-'* 4}{path}\n{report}")
6364
if report_path:
64-
with open(f"{report_path}/{uniquify(Path(path).name)}") as validation_report:
65+
with open(uniquify(f"{report_path}/{(Path(path).name)}"), "w") as validation_report:
6566
validation_report.write(report)
6667
else:
6768
validation_result.append({path: False})

0 commit comments

Comments
 (0)