Skip to content

Conversation

@bsandrow
Copy link

@bsandrow bsandrow commented Aug 1, 2023

If cloudscraper is embedded in a zip (e.g. zipapp), you can't use paths to load the browsers.json file, so importing the library fails. importlib.resources allows this to work, but was added in Python 3.7. I saw that you had back to Python 3.5 in tox.ini, so I added a switch to use the old behaviour prior to 3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant