<div dir="ltr"><div>Hi Zoltan,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 9, 2020 at 8:15 AM Zoltan Szecsei <<a href="mailto:zoltans@geograph.co.za">zoltans@geograph.co.za</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
set <br>
PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\grass\grass78\etc\python\grass<br></blockquote><div><br></div><div>The path needs to be just to ...\etc\python, grass is already the package name (you can examine the directory to see if there is __init__.py file.</div><div><br></div><div>There are different approaches to this. Modification of what you are doing is here, trying to get the path from GRASS GIS executable (here just `grass`):<br></div><div><br></div><div><a href="https://github.com/wenzeslaus/try-grass-in-jupyter/blob/master/notebook.ipynb">https://github.com/wenzeslaus/try-grass-in-jupyter/blob/master/notebook.ipynb</a></div><div><br></div><div>Another one is grass-session/grass_session:</div><div><br></div><div><a href="https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session">https://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_7_with_an_external_library:_grass-session</a></div><div><br></div><div>HTH,</div><div>Vaclav<br></div></div></div>