Add python to visual studio for mac

broken image

I did a print(os.environ) from inside Freecad, and the PATH variable looks to have everything I would need to somehow add to my custom python env. But how do I reference that? Then would also need to add the Mod folder for all the workbenchs. It works from Freecad, but VS2017 doesn't know where it is (I found it in the Ext folder right under the main Freecad folder. Perhaps I have to modify the PYTHONPATH variable to include other locations? One of the modules I call in my first macro is PySide. I setup a custom python environment to point to the needed items inside the freecad installation folder, but it would seem that not all the installed packages are showing up (the ones under FreeCAD_0.19\bin\Lib\site-packages folder. I don't even necessarily need access to the freecad workbenches for now, but I need a bit more than I currently have. I just think it would have more better options than running the macro editor in freecad. What? That's like telling me to use vi as my text editor instead of Notepad++! Seriously though, I have the same idea using visual studio 2017 for macro programming (AND testing).