What about using pkg_resources
to avoid micro-syntaxes in pywebview.js
?
#1313
hasansezertasan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These micro-syntaxes are really annoying and make the code difficult to read. My suggestion is to use the approach found here:
https://github.com/AtuboDad/playwright_stealth/blob/43f7433057906945b1648179304d7dbd8eb10874/playwright_stealth/stealth.py
Edit: How to read a (static) file from inside a Python package? - Stack Overflow is also a good read.
Beta Was this translation helpful? Give feedback.
All reactions