Author: bugman Date: Tue Mar 12 18:45:20 2013 New Revision: 18806 URL: http://svn.gna.org/viewcvs/relax?rev=18806&view=rev Log: Bug fix for the external Scientific Python Geometry package. This is a strange Python 3 issue only triggered when the epydoc Python package is installed. Modified: trunk/extern/scientific_python/Geometry/__init__.py Modified: trunk/extern/scientific_python/Geometry/__init__.py URL: http://svn.gna.org/viewcvs/relax/trunk/extern/scientific_python/Geometry/__init__.py?rev=18806&r1=18805&r2=18806&view=diff ============================================================================== --- trunk/extern/scientific_python/Geometry/__init__.py (original) +++ trunk/extern/scientific_python/Geometry/__init__.py Tue Mar 12 18:45:20 2013 @@ -56,8 +56,12 @@ tm_name = TensorModule.__name__ Vector.__module__ = 'Scientific.Geometry' Tensor.__module__ = 'Scientific.Geometry' - isVector.func_globals['__name__'] = 'Scientific.Geometry' - isTensor.func_globals['__name__'] = 'Scientific.Geometry' + if hasattr(isVector, 'func_globals'): # Python 2. + isVector.func_globals['__name__'] = 'Scientific.Geometry' + isTensor.func_globals['__name__'] = 'Scientific.Geometry' + else: # Python 3. + isVector.__globals__['__name__'] = 'Scientific.Geometry' + isTensor.__globals__['__name__'] = 'Scientific.Geometry' VectorModule.__name__ = vm_name TensorModule.__name__ = tm_name del VectorModule