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

Directory issue with Python3 use #11

Open
movelazar opened this issue Oct 21, 2020 · 0 comments
Open

Directory issue with Python3 use #11

movelazar opened this issue Oct 21, 2020 · 0 comments

Comments

@movelazar
Copy link

When I make my rule, doing

antlr(
    name = "simple_boolean",
    srcs = ["SimpleBoolean.g4"],
    language = "Python3",
    listener = False,
    visitor = True,
)

it puts the generated files into:

bazel-bin/utils/rule_engine/simple_boolean.py

Am I missing something about doing python imports? I can't find a way to import a package that has a . in it. But I see the code this is very explicitly doing this step. What am I missing to be able to then import and use these generated files?

It works fine when I run antlr myself, instead of via this.

It works fine in my golang side implementation.

Thanks for any help.

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

No branches or pull requests

1 participant