Browse Source

feat(dev): Refactor selenium patch so it can be called outside of `install-py-dev` (#30447)

This will allow it to be called from getsentry
Billy Vong 3 years ago
parent
commit
df89b5cd31
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/lib.sh

+ 4 - 0
scripts/lib.sh

@@ -119,7 +119,11 @@ install-py-dev() {
     # Webpacked assets are only necessary for devserver (which does it lazily anyways)
     # and acceptance tests, which webpack automatically if run.
     SENTRY_LIGHT_BUILD=1 pip install -e '.[dev]'
+    patch-selenium
+}
 
+patch-selenium() {
+    # XXX: getsentry repo calls this!
     # This hack is until we can upgrade to a newer version of Selenium
     fx_profile=.venv/lib/python3.8/site-packages/selenium/webdriver/firefox/firefox_profile.py
     # Remove this block when upgrading the selenium package