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

Create lark/grammars/__init__.py #1171

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

chanicpanic
Copy link
Contributor

lark.grammars is declared as a package in setup.py, but lark/grammars is missing an __init__.py.

Without it, attempting something like Lark.open_from_package("lark.grammars", "lark.lark") fails.

@erezsh erezsh merged commit d03f32b into lark-parser:master Jul 27, 2022
@erezsh
Copy link
Member

erezsh commented Jul 27, 2022

Thanks!

Just fyi, what I usually do is Lark.open_from_package("lark", "grammars/lark.lark")

But there's no harm in having it both ways.

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.

2 participants