Skip to content

Commit 805682c

Browse files
authored
Merge pull request #357 from seleniumbase/command-update
Use shutil.move() instead of os.rename()
2 parents 3d37c16 + 329306d commit 805682c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

seleniumbase/utilities/selenium_grid/download_selenium_server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" Downloads the Selenium Server JAR file and renames it. """
22

33
import os
4+
import shutil
45
import sys
56
if sys.version_info[0] == 2:
67
from urllib import urlopen
@@ -45,9 +46,9 @@ def main(force_download=True):
4546
for filename in os.listdir("."):
4647
# If multiple copies exist, keep only the latest and rename it.
4748
if filename.startswith("selenium-server-standalone-"):
48-
os.rename(filename, RENAMED_JAR_FILE)
49+
shutil.move(filename, RENAMED_JAR_FILE)
4950
if FULL_DOWNLOAD_PATH != FULL_EXPECTED_PATH:
50-
os.rename(RENAMED_JAR_FILE, FULL_EXPECTED_PATH)
51+
shutil.move(RENAMED_JAR_FILE, FULL_EXPECTED_PATH)
5152
print("%s\n" % FULL_EXPECTED_PATH)
5253

5354

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='seleniumbase',
20-
version='1.28.1',
20+
version='1.28.2',
2121
description='Fast, Easy, and Reliable Browser Automation & Testing.',
2222
long_description=long_description,
2323
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)