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.
---
 py/selenium/webdriver/firefox/firefox_profile.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Index: python-selenium/py/selenium/webdriver/firefox/firefox_profile.py
===================================================================
--- python-selenium.orig/py/selenium/webdriver/firefox/firefox_profile.py
+++ python-selenium/py/selenium/webdriver/firefox/firefox_profile.py
@@ -36,7 +36,7 @@ from selenium.webdriver.common.proxy imp
 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"
 
@@ -245,9 +245,6 @@ class FirefoxProfile(object):
             - path: url, 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'):
