yglukhov / nimpy

Nim - Python bridge
MIT License
1.48k stars 60 forks source link

Custom setting the path to python.exe (Windows) #267

Closed ippaveln closed 2 years ago

ippaveln commented 2 years ago

I would like to be able to set the path to the interpreter manually (for example, using an environment variable), since findExe does not work very well if the system has several interpreters from different places (including from msys)

In my opinion it is possible to change the pythonLibHandleFromExternalLib function.

yglukhov commented 2 years ago

nimpy doesn't use python.exe, but rather libpython, which path you can hint with pyInitLibPath