Skip to content

Commit 7ebef21

Browse files
jkbzhdiemol
authored andcommitted
replacing os.rpath with os.path.normpath()
suggested by codiumai-pr-agent-pro
1 parent ae27abc commit 7ebef21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def install_addon(self, path, temporary=False) -> str:
126126
if os.path.isdir(path):
127127
fp = BytesIO()
128128
# filter all trailing slash found in path
129-
path = path.rstrip(os.sep)
129+
path = os.path.normpath(path)
130130
# account for trailing slash that will be added by os.walk()
131131
path_root = len(path) + 1
132132
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:

0 commit comments

Comments
 (0)