You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Textual (specifically App and DOMNode) assumes that the file containing source code for Widget classes is available and raises an OSError when this is not the case. This information is used to render the location of CSS styles.
I'm trying to get a Textual app running in an environment in which getpath doesn't work (Pyodide) because there's no file system in WebAssembly. Obviously, this is a pretty extreme environment, but I think the bug remains reasonable to address.
The calls to getfile are already wrapped in a try/except for TypeError with fallback behavior, so I propose that OSError be handled here, too. I can provide a standalone test case, though it's a little involved, so I'd rather just open a PR shortly, if you'll consider it.
The text was updated successfully, but these errors were encountered:
Textual (specifically App and DOMNode) assumes that the file containing source code for Widget classes is available and raises an
OSError
when this is not the case. This information is used to render the location of CSS styles.I'm trying to get a Textual app running in an environment in which
getpath
doesn't work (Pyodide) because there's no file system in WebAssembly. Obviously, this is a pretty extreme environment, but I think the bug remains reasonable to address.The calls to
getfile
are already wrapped in a try/except forTypeError
with fallback behavior, so I propose thatOSError
be handled here, too. I can provide a standalone test case, though it's a little involved, so I'd rather just open a PR shortly, if you'll consider it.The text was updated successfully, but these errors were encountered: