Glynn Clements wrote:
> António Rocha wrote:
>
>
> >> File "/usr/local/grass-6.4.0svn/scripts/r.in.globcover.py", line 50, in <module>
>>     import grass.script as grass
>> *ImportError: No module named grass.script*
>>
>> I thought GRASS6.4 Python's script already had this module. Is not available? >> >
> 6.4 has the Python modules, but the build system doesn't support
> Python scripts (it doesn't set PYTHONPATH when executing commands).
>
What does this means? That I won't be able to run Python Scripts in 6.4?

> You will need to modify the definition of htmldesc in
> include/Make/Html.make to set PYTHONPATH to include
> $(GISBASE)/etc/python (making it work on Windows isn't
> straightforward, so I don't expect it to change in 6.x).
>
>
This means that now htmldesc becomes this?
htmldesc = \
  GISRC=$(RUN_GISRC) \
  GISBASE=$(RUN_GISBASE) \
  PATH="$(BIN):$$PATH" \
      PYTHONPATH= "$(GISBASE)/etc/python" \
$(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \ LC_ALL=C $(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(PGM).tmp.html ; true

>> Just one last question: How can I retrieve image projection, using a Python script, with tghe same information-structure I get when I use: grass.read_command('g.proj', flags = 'jf').strip() >> > grass.read_command('g.proj', flags = 'jf', georef = filename).strip()
>
> My first test seems to be fully working. Thanks :)


THanks

Best regards,
Antonio


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5216 (20100621) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to