[GRASS-SVN] r29407 - in grass/trunk/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 11 10:13:50 EST 2007


Author: martinl
Date: 2007-12-11 10:13:50 -0500 (Tue, 11 Dec 2007)
New Revision: 29407

Modified:
   grass/trunk/gui/wxpython/README
   grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxPython GUI: cosmetics in README

Modified: grass/trunk/gui/wxpython/README
===================================================================
--- grass/trunk/gui/wxpython/README	2007-12-11 14:44:01 UTC (rev 29406)
+++ grass/trunk/gui/wxpython/README	2007-12-11 15:13:50 UTC (rev 29407)
@@ -156,15 +156,12 @@
 in directory 'display_driver'. Note that you need to compile GRASS
 with C++ support (--with-cxx).
 
-$ cd $GISBASE/etc/wx/display_driver
+First, create symlink, e.g.
 
-Make symlink, e.g.
+$ ln -s /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so $GISBASE/lib/libgdi.so
 
-$ ln -s /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so libgdi.so
-
 Then you can compile the driver
 
+$ cd $GISBASE/etc/wx/display_driver
 $ make
 
-Note: You probably will need to modify the Makefile. This need to be
-fixed in the future.

Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py	2007-12-11 14:44:01 UTC (rev 29406)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py	2007-12-11 15:13:50 UTC (rev 29407)
@@ -45,12 +45,13 @@
 from debug import Debug as Debug
 import gselect 
 try:
-    driverPath = os.path.join( os.getenv("GISBASE"), "etc","wx", "display_driver")
+    driverPath = os.path.join(os.getenv("GISBASE"), "etc","wx", "display_driver")
     sys.path.append(driverPath)
     from grass6_wxdriver import DisplayDriver
-except:
-    print >> sys.stderr, "Digitization tool is disabled.\n" \
-        "Detailed information in README file."
+except ImportError, err:
+    print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s).%s" \
+          "Detailed information in README file." % \
+          (os.linesep, err, os.linesep)
 
 USEVEDIT = True
     



More information about the grass-commit mailing list