Skip to content

Commit 81482e4

Browse files
committed
Use os.path.join() as needed
1 parent 356040e commit 81482e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/behave/behave_sb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def behave_dashboard_prepare():
10281028
_create_dashboard_assets_()
10291029
# Output Dashboard info to the console
10301030
sb_config.item_count_untested = sb_config.item_count
1031-
dash_path = os.getcwd() + "/dashboard.html"
1031+
dash_path = os.path.join(os.getcwd(), "dashboard.html")
10321032
star_len = len("Dashboard: ") + len(dash_path)
10331033
try:
10341034
terminal_size = os.get_terminal_size().columns

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ def pytest_terminal_summary(terminalreporter):
17211721
sb_config.dashboard and not sb_config._only_unittest
17221722
):
17231723
# Print link a second time because the first one may be off-screen
1724-
dashboard_file = os.getcwd() + "/dashboard.html"
1724+
dashboard_file = os.path.join(os.getcwd(), "dashboard.html")
17251725
terminalreporter.write_sep("-", "Dashboard: %s" % dashboard_file)
17261726
if (
17271727
sb_config._has_exception

0 commit comments

Comments
 (0)