In Makefiles there is way how to run something within a GRASS session without requiring the current session. It is used for building documentation and for example in gui/wxpython Makefile:
$(call run_grass,$(PYTHON) $< "manager" >> $@) which uses this from include/Make/Rules.make: GRASS_PYTHONPATH := $(call mkpath,$(GISBASE)/etc/python,$$PYTHONPATH) GRASS_PYTHONPATH := $(call mkpath,$(ARCH_DISTDIR)/etc/python,$(GRASS_PYTHONPATH)) run_grass = \ GISRC=$(RUN_GISRC) \ GISBASE=$(RUN_GISBASE) \ PATH="$(ARCH_DISTDIR)/bin:$(GISBASE)/bin:$(GISBASE)/scripts:$$PATH" \ PYTHONPATH="$(GRASS_PYTHONPATH)" \ $(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$(BASE_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \ LC_ALL=C \ $(1) This is all I know now. I cannot look at it now more but hopefully this information will be useful. On Tue, Oct 22, 2013 at 6:16 PM, Michael Barton <[email protected]>wrote: > Sounds like a plan. > > Michael > ______________________________ > C. Michael Barton > Director, Center for Social Dynamics & Complexity > Professor of Anthropology, School of Human Evolution & Social Change > Arizona State University > Tempe, AZ 85287-2402 > USA > > voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC) > fax: 480-965-7671(SHESC), 480-727-0709 (CSDC) > www: http://csdc.asu.edu, http://shesc.asu.edu > http://www.public.asu.edu/~cmbarton > > On Oct 22, 2013, at 3:05 PM, Markus Neteler <[email protected]> > wrote: > > > Michael, > > > > it tries to run the virtual session therein to generate the header of > > the manual. So it wants to use PERMANENT rather than store anything > > there. Perhaps there is a switch needed/existing to not test who the > > owner of the mapset is. > > > > Markus > > _______________________________________________ > grass-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-dev >
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
