I can't import Grass in Console of Qgis (1.9.0 Master). I am guessing it is because of some Grass environment variables which are not set up correctly. However I don't understand why it is working when I start my script directly from the script editor (new feature in QGIS 1.9 it seems). How come environment variables could be set up differently for the console and for the editor?
Thanks in advance for any explanation and help with this. I would like my script start from the console (with command execfile)
import grass.script as grass
Traceback (most recent call last): File "", line 1, in File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\qgis\utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named script
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\qgis\utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named script