File: 0001-Set-xpi-path-to-usr-lib.patch

package info (click to toggle)
python-selenium 3.14.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,024 kB
  • sloc: python: 5,165; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Sascha Girrulat <sascha@girrulat.de>
Date: Sat, 31 Oct 2015 20:52:16 +0100
Subject: Set xpi path to /usr/lib

The package firefoxdriver shippes the webdriver.xpi at /usr/lib/firefoxdriver.
---
 selenium/webdriver/firefox/firefox_profile.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/selenium/webdriver/firefox/firefox_profile.py b/selenium/webdriver/firefox/firefox_profile.py
index d987a64..65b5c30 100644
--- a/selenium/webdriver/firefox/firefox_profile.py
+++ b/selenium/webdriver/firefox/firefox_profile.py
@@ -37,7 +37,7 @@ from selenium.webdriver.common.proxy import ProxyType
 from selenium.common.exceptions import WebDriverException
 
 
-WEBDRIVER_EXT = "webdriver.xpi"
+WEBDRIVER_EXT = "/usr/lib/firefoxdriver/webdriver.xpi"
 WEBDRIVER_PREFERENCES = "webdriver_prefs.json"
 EXTENSION_NAME = "fxdriver@googlecode.com"
 
@@ -249,9 +249,6 @@ class FirefoxProfile(object):
             - path: url, absolute path to .xpi, or directory of addons
             - unpack: whether to unpack unless specified otherwise in the install.rdf
         """
-        if addon == WEBDRIVER_EXT:
-            addon = os.path.join(os.path.dirname(__file__), WEBDRIVER_EXT)
-
         tmpdir = None
         xpifile = None
         if addon.endswith('.xpi'):