Skip to content

Commit 4e23da3

Browse files
committed
Add install option to add "msedgedriver" to "/usr/local/bin"
1 parent d5dc858 commit 4e23da3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

seleniumbase/console_scripts/sb_install.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ def main(override=None):
661661
print("Making [%s %s] executable ..." % (driver_file, use_version))
662662
make_executable(driver_path)
663663
print("%s[%s] is now ready for use!%s" % (c1, driver_file, cr))
664+
if copy_to_path and os.path.exists(LOCAL_PATH):
665+
path_file = LOCAL_PATH + f_name
666+
shutil.copyfile(new_file, path_file)
667+
make_executable(path_file)
668+
print("Also copied to: %s%s%s" % (c3, path_file, cr))
664669
print("")
665670
elif name == "operadriver":
666671
if len(contents) > 3:

0 commit comments

Comments
 (0)