Hi,

I am trying to write an external standalone python script that is using
grass commands. I setup my variables as below. I then run python3 in the
terminal and import grass works fine. However, in Pycharm editor, it will
not import for me. Any ideas of how to get around this?
Thanks

export GISBASE="$(grass76 --config path)"
export PATH="$PATH:$GISBASE/bin:$GISBASE/scripts"
export DYLD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GISBASE/lib"
export GIS_LOCK=$$
export GISRC="$HOME/.grass7/rc"
export PYTHONPATH="$PYTHONPATH:$GISBASE/etc/python"

Le gach dea ghui,
*Shane Carey*
*GIS and Data Solutions Consultant*
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to