Skip to content

Commit

Permalink
Fixed administracion_effictivo on windows by forcing UTF-8 encoding u…
Browse files Browse the repository at this point in the history
…sage (#15)

Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins committed Mar 18, 2024
1 parent 2188124 commit 07b67ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_json_from_report_output_file(**kwargs):
report_path = os.getenv(constants.REPORT_OUTPUT_PATH)
report_path = kwargs.get('report_path', report_path)

with open(report_path + "/static-report/output.js") as file:
with open(report_path + "/static-report/output.js", encoding='utf-8') as file:
js_report = file.read()
return json.loads(js_report.split('window["apps"] = ')[1])[0]

Expand Down

0 comments on commit 07b67ac

Please sign in to comment.