Skip to content
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

Catch OSError when source code is not available #2469

Merged
merged 2 commits into from
May 8, 2023

Conversation

williballenthin
Copy link
Contributor

@williballenthin williballenthin commented May 3, 2023

closes #2468

with this fix, my use case works a bit more:
image

There's still an outstanding call to getfile but since I haven't hit this code path yet and therefore can't verify a fix, I haven't attempted it.

subclass_path = Path(inspect.getfile(obj.__class__))

Please review the following checklist.

  • n/a Docstrings on all new or modified functions / classes
  • n/a Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@willmcgugan
Copy link
Collaborator

Seems reasonable.

Do you know if it is possible to detect a FS free environment? i.e. an ENV var?

@willmcgugan willmcgugan merged commit 483aa54 into Textualize:main May 8, 2023
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.

OSError when the file system is not available
2 participants