You shouldn't need etree or gettext, etree functionality is available via inkex.elements etc.
You don't need to add the path in your code. For running locally, you should add the extensions path to your environment PYTHONPATH. Inkscape will automatically add the right paths when it's running extensions.
I'm attempting to clean up an existing extention for Inkscape 1.0
I already have a working version but I'd like to clean up the code further and I'm stuck on the imports.
My imports look like this
The import inkex part is being flagged by pylint and I can't workout why. What's the correct way to import inkex?
Also what is a good way to reference the path for development?
You shouldn't need etree or gettext, etree functionality is available via inkex.elements etc.
You don't need to add the path in your code. For running locally, you should add the extensions path to your environment PYTHONPATH. Inkscape will automatically add the right paths when it's running extensions.
Thanks. That worked.