Skip to content

Fix bug when using --module foo and foo is a directory. #58

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NiltonVolpato
Copy link

  • The current check would try to load that as a file and fail.
  • Pointing to the file itself (foo/init.py) doesn't work because then the _is_submodule check fails, because the module name is a random UUID in that case.
  • PYTHONPATH=. pydantic2ts.py --module foo --output foo.ts works in this case.

* The current check would try to load that as a file and fail.
* Pointing to the file itself (foo/__init__.py) doesn't work because then the _is_submodule check fails, because the module name is a random UUID in that case.
* `PYTHONPATH=. pydantic2ts.py --module foo --output foo.ts` works in this case.
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