VSCode / Pylint on Windows

Need help, or want to share a macro? Post here!
Post Reply
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

VSCode / Pylint on Windows

Post by Joel_graff »

How do I get Pylint to pick up the FreeCAD libraries so it doesn't show 'import FreeCAD / FreeCADGUI' as an import error?

I can accomplish it on Linux, but doing it in Windows is a bit of a challenge. I do have a functional .pylintrc in my home path, and pylint is picking it up. Just not sure why I can't get it to see the FreeCAD dll's...
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
triplus
Veteran
Posts: 9472
Joined: Mon Dec 12, 2011 4:45 pm

Re: VSCode / Pylint on Windows

Post by triplus »

Likely by using similar procedure as here:

https://forum.freecadweb.org/viewtopic. ... 74#p210719

Replacing FreeCAD.so with FreeCAD.pyd.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: VSCode / Pylint on Windows

Post by Joel_graff »

triplus wrote: Tue Apr 09, 2019 10:13 pm Replacing FreeCAD.so with FreeCAD.pyd.
Right. I was fixated on the DLL's. Despite the fact I use a Win7 machine everyday at work I'm a bit of a noob when it comes to development on windows systems. :/
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
triplus
Veteran
Posts: 9472
Joined: Mon Dec 12, 2011 4:45 pm

Re: VSCode / Pylint on Windows

Post by triplus »

Good to hear you sorted it out.
Post Reply