Note that a .pyd file would only work on Windows.
On 4/5/2019 at 8:02 PM, ahoeben said:What do you want to achieve by converting the plugin to a pyd file?
A Professor (An engineer) asked me, if Plugins can use .DLL files. Searching for how to use .dll-files in python, I found this hole .pyd thing. So, I just wanted to try it.
And yes, i am working on Windows.
Plugins can theoretically use .dll files, but it's probably going to be tricky to get it to work properly (if at all).
- 2 weeks later...
@MadCooper There seems to be something missing in your code for your pyd file. Cura (actually the embedded Python interpreter) should be able to pick it up normally. I've embedded PyWin32 into my CAD plugins and it comes with many pyd files and works fine.
You probably want to take a look into SWIG or Cython to be able to code with fewer hassles and let one of these projects generate the C/C++ code you need.
Maybe this is something for you! 🙂
Recommended Posts
ahoeben 1,987
What do you want to achieve by converting the plugin to a pyd file?
All plugins are distributed as .py files. You may be able to get it to work with .pyc files instead if you want to obfuscate your code.
Link to post
Share on other sites