[GRASS-SVN] r62205 - in grass/trunk/lib/python/pygrass: . messages modules modules/grid raster shell vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 7 08:30:46 PDT 2014
Author: zarch
Date: 2014-10-07 08:30:46 -0700 (Tue, 07 Oct 2014)
New Revision: 62205
Modified:
grass/trunk/lib/python/pygrass/errors.py
grass/trunk/lib/python/pygrass/messages/__init__.py
grass/trunk/lib/python/pygrass/modules/__init__.py
grass/trunk/lib/python/pygrass/modules/grid/__init__.py
grass/trunk/lib/python/pygrass/modules/grid/grid.py
grass/trunk/lib/python/pygrass/modules/shortcuts.py
grass/trunk/lib/python/pygrass/raster/__init__.py
grass/trunk/lib/python/pygrass/shell/__init__.py
grass/trunk/lib/python/pygrass/vector/__init__.py
Log:
pygrass: Separate ctypes from not ctypes modules and remove spyder header
Modified: grass/trunk/lib/python/pygrass/errors.py
===================================================================
--- grass/trunk/lib/python/pygrass/errors.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/errors.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,9 +1,4 @@
# -*- coding: utf-8 -*-
-"""
-Created on Wed Aug 15 17:33:27 2012
-
- at author: pietro
-"""
from functools import wraps
from grass.exceptions import (FlagError, ParameterError, DBError,
Modified: grass/trunk/lib/python/pygrass/messages/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/messages/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/messages/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -17,6 +17,7 @@
from multiprocessing import Process, Lock, Pipe
import grass.lib.gis as libgis
+libgis.G_gisinit('')
from grass.exceptions import FatalError
@@ -75,7 +76,7 @@
libgis.G_debug(1, "Stop messenger server")
sys.exit()
- message = data[1]
+ message = data[1]
# libgis limitation
if isinstance(message, type(" ")):
if len(message) >= 2000:
Modified: grass/trunk/lib/python/pygrass/modules/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/modules/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,14 +1,3 @@
# -*- coding: utf-8 -*-
-"""
-Created on Thu Jul 12 10:23:15 2012
-
- at author: pietro
-
-"""
-from grass.pygrass.modules import interface
from grass.pygrass.modules.interface import Module, ParallelModuleQueue
-
-from grass.pygrass.modules import grid
-from grass.pygrass.modules.grid.grid import GridModule
-
from grass.pygrass.modules import shortcuts
Modified: grass/trunk/lib/python/pygrass/modules/grid/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/modules/grid/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,11 +1,3 @@
# -*- coding: utf-8 -*-
-"""
-Created on Wed Apr 3 10:41:30 2013
-
- at author: pietro
-"""
-from grass.pygrass.modules.grid import split
-from grass.pygrass.modules.grid import patch
-from grass.pygrass.modules.grid import grid
from grass.pygrass.modules.grid.grid import GridModule
Modified: grass/trunk/lib/python/pygrass/modules/grid/grid.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/grid/grid.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/modules/grid/grid.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,9 +1,4 @@
# -*- coding: utf-8 -*-
-"""
-Created on Thu Mar 28 11:06:00 2013
-
- at author: pietro
-"""
from __future__ import (nested_scopes, generators, division, absolute_import,
with_statement, print_function, unicode_literals)
import os
Modified: grass/trunk/lib/python/pygrass/modules/shortcuts.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/shortcuts.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/modules/shortcuts.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,9 +1,4 @@
# -*- coding: utf-8 -*-
-"""
-Created on Tue Apr 2 18:49:11 2013
-
- at author: pietro
-"""
from __future__ import (nested_scopes, generators, division, absolute_import,
with_statement, print_function, unicode_literals)
import fnmatch
Modified: grass/trunk/lib/python/pygrass/raster/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/raster/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/raster/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,9 +1,4 @@
# -*- coding: utf-8 -*-
-"""
-Created on Fri May 25 12:56:33 2012
-
- at author: pietro
-"""
from __future__ import (nested_scopes, generators, division, absolute_import,
with_statement, print_function, unicode_literals)
import os
@@ -20,6 +15,8 @@
import grass.lib.raster as libraster
import grass.lib.rowio as librowio
+libgis.G_gisinit('')
+
#
# import pygrass modules
#
Modified: grass/trunk/lib/python/pygrass/shell/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/shell/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/shell/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,10 +1,2 @@
# -*- coding: utf-8 -*-
-"""
-Created on Sun Jun 23 15:06:46 2013
- at author: pietro
-"""
-
-from grass.pygrass.shell import conversion
-from grass.pygrass.shell import show
-
Modified: grass/trunk/lib/python/pygrass/vector/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/__init__.py 2014-10-07 14:41:47 UTC (rev 62204)
+++ grass/trunk/lib/python/pygrass/vector/__init__.py 2014-10-07 15:30:46 UTC (rev 62205)
@@ -1,16 +1,13 @@
# -*- coding: utf-8 -*-
-"""
-Created on Tue Jul 17 08:51:53 2012
-
- at author: pietro
-"""
-import grass.lib.vector as libvect
-from grass.pygrass.vector.vector_type import VTYPE
from os.path import join, exists
+import grass.lib.gis as libgis
+libgis.G_gisinit('')
+import grass.lib.vector as libvect
#
# import pygrass modules
#
+from grass.pygrass.vector.vector_type import VTYPE
from grass.pygrass.errors import GrassError, must_be_open
from grass.pygrass.gis import Location
More information about the grass-commit
mailing list