NetLogo / Python-Extension

Python extension for NetLogo
26 stars 15 forks source link

Extension not respecting specified python 3 path #28

Closed qiemem closed 1 year ago

qiemem commented 1 year ago

image

I specified a python path in the extension config menu, by py:python3 still returns default python on my path. The properties file has the path I specified in it:

❯ cat "/home/bryan/.netlogo/6.3/py/py.properties"
#
#Sun May 28 10:47:32 PDT 2023
python2=
runtimePath=/home/bryan/mambaforge/envs/py11/bin/python

When I manually specify that python path, everything works as expected:

observer> py:setup "/home/bryan/mambaforge/envs/py11/bin/python"
observer> py:run "import sys"
observer> show py:runresult "sys.version"
observer: "3.11.3 | packaged by conda-forge | (main, Apr  6 2023, 08:57:19) [GCC 11.3.0]"
LaCuneta commented 1 year ago

This is fixed here and a new 0.5.4 release of the Python extension to the extensions manager just went up so you should be able to test it out.

qiemem commented 1 year ago

That did it! Thanks!