Skip to content

Commit 91070ee

Browse files
committed
Fix issue with driver install on Windows 10
1 parent bd573f1 commit 91070ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ def main(override=None):
113113

114114
num_args = len(sys.argv)
115115
if (
116-
sys.argv[0].split("/")[-1].lower() == "seleniumbase"
117-
or (sys.argv[0].split("\\")[-1].lower() == "seleniumbase")
118-
or (sys.argv[0].split("/")[-1].lower() == "sbase")
119-
or (sys.argv[0].split("\\")[-1].lower() == "sbase")
116+
"sbase" in sys.argv[0].lower()
117+
or ("seleniumbase" in sys.argv[0].lower())
120118
):
121119
if num_args < 3 or num_args > 5:
122120
invalid_run_command()

0 commit comments

Comments
 (0)