python: Fix import in plugin example

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.
This commit is contained in:
Martin Povišer 2023-12-07 14:31:56 +01:00
parent 45dd9eca64
commit 44c72e5223
1 changed files with 1 additions and 1 deletions

View File

@ -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