I'm not really sure I understand what you are doing: 1) You need to use the " quotes, not the « ones. 2) where you put this command, exaclty?
m ps: as far as I understand it should works since python is invoked via the scheme command: (define (python-launcher) (if (url-exists? "$TEXMACS_HOME_PATH/plugins/tmpy") (string-append (python-command) " \"" (getenv "TEXMACS_HOME_PATH") "/plugins/tmpy/session/tm_python.py\"") (string-append (python-command) " \"" (getenv "TEXMACS_PATH") "/plugins/tmpy/session/tm_python.py\""))) in plugins/python/progs/init-python.scm > On 11. Dec 2020, at 21:50, Pierre-Henri Jondot <phjon...@gmail.com> wrote: > > > >> Le 11 déc. 2020 à 21:15, Massimiliano Gubinelli <m.gubine...@gmail.com> a >> écrit : >> >> Note that you have to adjust the path to your system (mine was an example). > > I am well aware of that. > > In my case the command was : > (define (python-command) «/Users/phjo/anaconda3/bin/python ») > > I tried python3-command too, to make sure (no change). For me this doesn’t > work, the python session uses the (python 3 though, with Big Sur or Catalina) > python from macos and not anaconda’s despite this command. > > Regards, > > Pierre-Henri > >> >> m >> >> >>> On 11. Dec 2020, at 20:35, Pierre-Henri Jondot <phjon...@gmail.com> wrote: >>> >>> Hi, >>> >>> I encountered the same problem here. Anaconda’s installer edits >>> ~/.bash_profile (I suppose) or ~/.zshrc (for the most recent versions of >>> macos) to prepend the PATH. >>> >>> That means of course the correct PATH is only available within the terminal. >>> >>> A simple (not very macos like) solution is to run texmacs from the terminal >>> : >>> open /Applications/TeXmacs.app >>> >>> An ugly fix would be to add anaconda’s path on top of /etc/paths (I have no >>> idea what that might break in the future though) >>> >>> Now I tried the (define (python-command…)), but it didn’t seem to work >>> though… >>> >>> Pierre-Henri >>> > > > _______________________________________________ > Texmacs-dev mailing list > Texmacs-dev@gnu.org > https://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev