Hi Yegor,
You wrote on Thu, Apr 10, 2025 at 12:50:02PM +0200:
> > Switch to a new behaviour and use the pyftdi1 target directly.
>
> ..
>
> This change was only compiled-checked.
>
> Python binding's file name has changed. But this is mostly
> interesting for the Debian package maintainers. When installing
> manually, there should be no problem.
patch applied, thanks Yegor!
I've quickly modified simple.py to open the just built local wrapper produced
by swig and it still worked:
************************************************
--- a/python/examples/simple.py
+++ b/python/examples/simple.py
@@ -8,8 +8,11 @@ of the swig generated python wrapper
You need to build and install the wrapper first"""
-import ftdi1 as ftdi
+import sys
+from pathlib import Path
+sys.path.append(str(Path(__file__)))
+import ftdi1 as ftdi
************************************************
Additional verification using strace showed that it
used the new _pyftdi1.so / ftdi1.py.
Cheers,
Thomas
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|