[GRASS-SVN] r46057 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 21 04:02:02 EDT 2011


Author: martinl
Date: 2011-04-21 01:02:02 -0700 (Thu, 21 Apr 2011)
New Revision: 46057

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxGUI: fix importing optional modules


Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2011-04-21 07:57:39 UTC (rev 46056)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2011-04-21 08:02:02 UTC (rev 46057)
@@ -247,7 +247,7 @@
     def OnGCPManager(self, event):
         """!Launch georectifier module
         """
-        import gui_modules.gcpmanager as gcpmanager
+        from gui_modules import gcpmanager
         gcpmanager.GCPWizard(self)
 
     def OnGModeler(self, event):
@@ -261,7 +261,7 @@
         """!Launch Hardcopy Map Output Utility
         """
         try:
-            import psmap
+            from gui_modules import psmap
         except:
             gcmd.GError(parent = self.parent,
                         message = _("Hardcopy Map Output Utility is not available. You can install it by %s") % \



More information about the grass-commit mailing list