[GRASS-dev] WinGrass65 + import gui_modules.nviz_tools as nviz_tools: ImportError

Glynn Clements glynn at gclements.plus.com
Fri Jun 4 05:54:37 EDT 2010


Helmut Kudrnovsky wrote:

> >This looks like a packaging issue. 
> 
> maybe any hints where (which files) to look for this path-issues in
> order to fix this in the nsis-installer?

The source file is lib/init/grass.py. This is installed to
bin.<arch>/grass70 (grass70.py on Windows) with some substitutions. It
is also installed to dist.<arch>/grass70.tmp, with most of the
substitutions but with @GISBASE@ left as-is.

Install.make installs dist.<arch>/grass70.tmp to $(UNIX_BIN), with
@GISBASE@ substituted by the actual install directory.

I note the following in mswindows/GRASS-Installer.nsi:

		;replace gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn" in grass70.py with $INSTDIR
	 Push "$INSTDIR\grass70.py" ; file to modify
	 Push 'gisbase = "/c/OSGeo4W/apps/grass/grass-7.0.svn"' ; string that a line must begin with *WS Sensitive*
	 Push 'gisbase = "$INSTDIR"' ; string to replace whole line with
	Call ReplaceLineStr

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list