from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('F:\\FirefoxPortable\\Firefox.exe')
driver = webdriver.Firefox(firefox_binary=binary)
Setting path to firefox binary on windows with selenium webdriver