Skip to content

Commit

Permalink
fix for when trying to start firefox with a backed up profile and alr…
Browse files Browse the repository at this point in the history
…eady existing extension.

Fixes Issue #8521

Signed-off-by: Luke Inman-Semerau <[email protected]>
  • Loading branch information
calinmarina authored and lukeis committed Mar 3, 2015
1 parent e7620c5 commit f7d72b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def _install_extension(self, addon, unpack=True):
os.makedirs(extensions_path)
shutil.copy(xpifile, addon_path + '.xpi')
else:
shutil.copytree(addon, addon_path, symlinks=True)
if not os.path.exists(addon_path):
shutil.copytree(addon, addon_path, symlinks=True)

# remove the temporary directory, if any
if tmpdir:
Expand Down

0 comments on commit f7d72b2

Please sign in to comment.