[GRASS-SVN] r37689 - grass/branches/develbranch_6/swig/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 1 04:59:58 EDT 2009
Author: neteler
Date: 2009-06-01 04:59:58 -0400 (Mon, 01 Jun 2009)
New Revision: 37689
Modified:
grass/branches/develbranch_6/swig/python/README
Log:
updated
Modified: grass/branches/develbranch_6/swig/python/README
===================================================================
--- grass/branches/develbranch_6/swig/python/README 2009-06-01 08:59:34 UTC (rev 37688)
+++ grass/branches/develbranch_6/swig/python/README 2009-06-01 08:59:58 UTC (rev 37689)
@@ -14,9 +14,10 @@
3. Run make in the swig/python/ directory
-It will create two files, python_grass6.py and _python_grass6.so.
+ It will create a series of .py Python files and of .so library files
-4. From within GRASS (or a fake grass session) run "python test.py" to
+4. TODO: STILL VALID??:
+ From within GRASS (or a fake grass session) run "python test.py" to
test and to automatically create a byte-compiled version of the module
(python_grass6.pyc). The .pyc file is platform independent and may be
safely shared among systems. Even so, it doesn't hurt to rebuild it
@@ -29,14 +30,14 @@
How to use it?
--------------
-import python_grass6
+import grass
GRASS functions will be available in this module.
Eg:
- import python_grass6
- mapset=python_grass6.G_mapset()
+ import grass
+ mapset=grass.G_mapset()
print mapset
-See examples/m.distance for an example of a working SWIG-Python module.
+See examples/m.distance.py for an example of a working SWIG-Python module.
More examples can be found on the GRASS Wiki site's Python page:
http://grass.osgeo.org/wiki/GRASS_and_Python#Python-SWIG-GRASS_interface
@@ -69,3 +70,4 @@
Markus Landa
Glynn Clements
...
+
More information about the grass-commit
mailing list