Inkscape.org
Beyond the Basics Inkscape overwrites extensions.xml at startup thus it does not take the python interpreter into account
  1. #1
    ArthurMasson ArthurMasson @ArthurMasson

    I followed this guide to define a custom python interpreter (my system default python), so I edited /Users/amasson/Library/Application Support/org.inkscape.Inkscape/config/inkscape/preferences.xml with the foollowing:

    ...
    <group
    id="extensions"
    python-interpreter="/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
    ...

    But when I start inkscape, the file gets overwritten and the python-interpreter="/Library/Frameworks/Python.framework/Versions/3.12/bin/python3" part is removed.

    Thus my extension (inkscape-silhouette) does not work.

    What can I do to set the python interpreter?

  2. #2
    inklinea inklinea @inklinea⛰️

    I'm presuming that all instances of Inkscape were closed when you edited preferences.xml ? 

    I tried it myself. 

    I added my venv path:

    python-interpreter="/home/name/.config/inkscape/inkvenv/bin/python3.10"

    I then opened and closed Inkscape.

    The line I had added was still there, but it had been moved several lines down in between some extension id entries.

  3. #3
    ArthurMasson ArthurMasson @ArthurMasson

    I just tried and realized that the line python-interpreter="/path/to/python" is removed when I quite Inkscape so I changed the file once Inkscape is fully quit, and it works. Thanks!

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Inkscape overwrites extensions.xml at startup thus it does not take the python interpreter into account