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

python: Fix import in plugin example #4058

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

povik
Copy link
Member

@povik povik commented Dec 7, 2023

When a plugin is being loaded from Python source, the binding will be available under

import libyosys

That is unfortunately different from how a self-standing Python program would import the Yosys interface, which is

from pyosys import libyosys

Until that is made consistent, at least fix the example to have it working as is.

When a plugin is being loaded from Python source, the binding will be
available under

    import libyosys

That is unfortunately different from how a self-standing Python program
would import the Yosys interface, which is

    from pyosys import libyosys

Until that is made consistent, at least fix the example to have it
working as is.
@nakengelhardt nakengelhardt merged commit 2858c33 into YosysHQ:master Dec 11, 2023
17 checks passed
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