Browse Source

wxGUI/vclean: add main, remove unused imports

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55917 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 years ago
parent
commit
b3deaa93fc
1 changed files with 9 additions and 2 deletions
  1. 9 2
      gui/wxpython/modules/vclean.py

+ 9 - 2
gui/wxpython/modules/vclean.py

@@ -15,16 +15,17 @@ This program is free software under the GNU General Public License
 """
 
 import os
+import sys
 
 import wx
 import wx.lib.scrolledpanel as scrolled
 
-from grass.script import core as grass
+if __name__ == '__main__':
+    sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "gui", "wxpython"))
 
 from core.gcmd        import RunCommand, GError
 from core             import globalvar
 from gui_core.gselect import Select
-from core.debug       import Debug
 from core.settings    import UserSettings
 
 
@@ -551,3 +552,9 @@ class VectorCleaningFrame(wx.Frame):
 
         self.inmap = self.selectionInput.GetValue()
         self.outmap = self.selectionOutput.GetValue()
+
+if __name__ == '__main__':
+    app = wx.App()
+    frame = VectorCleaningFrame(parent=None)
+    frame.Show()
+    app.MainLoop()