Skip to content

Commit

Permalink
python: Fix import in plugin example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
povik committed Dec 7, 2023
1 parent 45dd9ec commit 44c72e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python-api/pass.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3

from pyosys import libyosys as ys
import libyosys as ys

import matplotlib.pyplot as plt
import numpy as np
Expand Down

0 comments on commit 44c72e5

Please sign in to comment.