New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import in hooks definde in env/envfile doesn't work #33
Comments
Thanks for filing this issue. Try this: ###env
class TokenAuth:
def __call__(self, r, stream, cert, timeout, verify, proxies):
import json
json.loads('{"a":"a"}')
###env
requests.post('https://wp.pl', hooks={'response': TokenAuth()}) This is obviously not ideal. Something about how the When I have some time I'll try to figure this out. ###env
import zlib
class TokenAuth:
def __call__(self, r, stream, cert, timeout, verify, proxies):
import json
print(zlib)
json.loads('{"a":"a"}')
###env
requests.post('https://wp.pl', hooks={'response': TokenAuth()}) |
Thank you @kylebebak! Workaround works as you write above. But importing others modules doesn't work as well. Please look into console output, in mine there is |
Windows 10 Pro/19042.928
Sublime Text 4/Build 4102
import in hooks defined in env/envfile doesn't work
request:
console output:
The text was updated successfully, but these errors were encountered: