Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37883131
en ru br
ALT Linux repos
S:3.14.1-alt1

Group :: Development/Python3
RPM: python3-module-selenium

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: selenium-use-without-bundled-libs.patch
Download


diff --git a/py/selenium/webdriver/firefox/firefox_binary.py b/py/selenium/webdriver/firefox/firefox_binary.py
index fdd1fd3..0025e2f 100644
--- a/selenium/webdriver/firefox/firefox_binary.py
+++ b/selenium/webdriver/firefox/firefox_binary.py
@@ -192,11 +192,12 @@ class FirefoxBinary(object):
             if not os.path.exists(library_path):
                 os.makedirs(library_path)
             import shutil
-            shutil.copy(os.path.join(
-                os.path.dirname(__file__),
-                path,
-                self.NO_FOCUS_LIBRARY_NAME),
-                library_path)
+            try:
+                shutil.copy(os.path.join(os.path.dirname(__file__), path,
+                    self.NO_FOCUS_LIBRARY_NAME),
+                    library_path)
+            except:
+                pass  # A Man's Gotta Do ...
             built_path += library_path + ":"
 
         return built_path
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin