From 44c72e52232e3ad3fb320b70746948c33df4c85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Thu, 7 Dec 2023 14:31:56 +0100 Subject: [PATCH] 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. --- examples/python-api/pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python-api/pass.py b/examples/python-api/pass.py index d67cf4a23..dbef0a13f 100755 --- a/examples/python-api/pass.py +++ b/examples/python-api/pass.py @@ -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