Просмотр исходного кода

grass.script.all replaced by __init__.py

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37554 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 лет назад
Родитель
Сommit
a4ba95a5f0
4 измененных файлов с 8 добавлено и 12 удалено
  1. 1 1
      lib/python/Makefile
  2. 5 5
      lib/python/__init__.py
  3. 0 4
      lib/python/all.py
  4. 2 2
      lib/python/grasspythonlib.dox

+ 1 - 1
lib/python/Makefile

@@ -7,7 +7,7 @@ PYDIR = $(ETC)/python
 GDIR = $(PYDIR)/grass
 DSTDIR = $(GDIR)/script
 
-MODULES = core db raster vector all
+MODULES = core db raster vector
 
 PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
 

+ 5 - 5
lib/python/__init__.py

@@ -1,5 +1,5 @@
-import core
-import db
-import raster
-import vector
-import all
+from core   import *
+from db     import *
+from raster import *
+from vector import *
+

+ 0 - 4
lib/python/all.py

@@ -1,4 +0,0 @@
-from core   import *
-from db     import *
-from raster import *
-from vector import *

+ 2 - 2
lib/python/grasspythonlib.dox

@@ -30,7 +30,7 @@ See code in:
 Usage:
 
 \code
-from grass.script import all as grass
+import grass.script as grass
 \endcode
 
 or just import selected module, e.g.
@@ -58,7 +58,7 @@ Sample script
 #%end
 
 import sys
-from grass.script import core as grass
+import grass.script as grass
 
 def main():
     info = grass.parse_command('v.info',