<div dir="ltr">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:<div><br></div><div>
$(call run_grass,$(PYTHON) $< "manager" >> $@)<br></div><div><br></div><div>which uses this from include/Make/Rules.make:</div><div><br></div><div><div>GRASS_PYTHONPATH := $(call mkpath,$(GISBASE)/etc/python,$$PYTHONPATH)</div>
<div>GRASS_PYTHONPATH := $(call mkpath,$(ARCH_DISTDIR)/etc/python,$(GRASS_PYTHONPATH))</div><div><br></div><div>run_grass = \</div><div><span class="" style="white-space:pre"> </span>GISRC=$(RUN_GISRC) \</div><div><span class="" style="white-space:pre"> </span>GISBASE=$(RUN_GISBASE) \</div>
<div><span class="" style="white-space:pre"> </span>PATH="$(ARCH_DISTDIR)/bin:$(GISBASE)/bin:$(GISBASE)/scripts:$$PATH" \</div><div><span class="" style="white-space:pre"> </span>PYTHONPATH="$(GRASS_PYTHONPATH)" \</div>
<div><span class="" style="white-space:pre"> </span>$(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$(BASE_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \</div><div><span class="" style="white-space:pre"> </span>LC_ALL=C \</div>
<div><span class="" style="white-space:pre"> </span>$(1)</div></div><div><br></div><div>This is all I know now. I cannot look at it now more but hopefully this information will be useful.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 6:16 PM, Michael Barton <span dir="ltr"><<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sounds like a plan.<br>
<div class="im"><br>
Michael<br>
______________________________<br>
C. Michael Barton<br>
Director, Center for Social Dynamics & Complexity<br>
Professor of Anthropology, School of Human Evolution & Social Change<br>
Arizona State University<br>
Tempe, AZ 85287-2402<br>
USA<br>
<br>
voice: <a href="tel:480-965-6262" value="+14809656262">480-965-6262</a> (SHESC), 480-965-8130/727-9746 (CSDC)<br>
fax: <a href="tel:480-965-7671" value="+14809657671">480-965-7671</a>(SHESC), <a href="tel:480-727-0709" value="+14807270709">480-727-0709</a> (CSDC)<br>
www: <a href="http://csdc.asu.edu" target="_blank">http://csdc.asu.edu</a>, <a href="http://shesc.asu.edu" target="_blank">http://shesc.asu.edu</a><br>
<a href="http://www.public.asu.edu/~cmbarton" target="_blank">http://www.public.asu.edu/~cmbarton</a><br>
<br>
</div>On Oct 22, 2013, at 3:05 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>><br>
<div class="HOEnZb"><div class="h5"> wrote:<br>
<br>
> Michael,<br>
><br>
> it tries to run the virtual session therein to generate the header of<br>
> the manual. So it wants to use PERMANENT rather than store anything<br>
> there. Perhaps there is a switch needed/existing to not test who the<br>
> owner of the mapset is.<br>
><br>
> Markus<br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</div></div></blockquote></div><br></div>