소스 검색

wxGUI: remove compat, subrocess requited by grass.py

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49642 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 년 전
부모
커밋
47f03dd07b
4개의 변경된 파일5개의 추가작업 그리고 1165개의 파일을 삭제
  1. 2 2
      gui/wxpython/Makefile
  2. 0 5
      gui/wxpython/compat/__init__.py
  3. 0 1149
      gui/wxpython/compat/subprocess.py
  4. 3 9
      gui/wxpython/core/gcmd.py

+ 2 - 2
gui/wxpython/Makefile

@@ -9,7 +9,7 @@ include $(MODULE_TOPDIR)/include/Make/Python.make
 
 ETCDIR = $(ETC)/gui/wxpython
 
-SRCFILES := $(wildcard compat/* icons/*.* scripts/* xml/*) \
+SRCFILES := $(wildcard icons/*.* scripts/* xml/*) \
 	$(wildcard core/* dbmgr/* gcp/* gmodeler/* gui_core/* lmgr/* location_wizard/* \
 	mapdisp/* modules/* nviz/* psmap/* vdigit/* wxplot/* ) \
 	gis_set.py gis_set_error.py wxgui.py README
@@ -17,7 +17,7 @@ DSTFILES := $(patsubst %,$(ETCDIR)/%,$(SRCFILES)) $(patsubst %.py,$(ETCDIR)/%.py
 
 PYDSTDIRS := $(patsubst %,$(ETCDIR)/%,core dbmgr gcp gmodeler gui_core lmgr location_wizard \
 	mapdisp modules nviz psmap vdigit wxplot)
-DSTDIRS := $(patsubst %,$(ETCDIR)/%,compat icons scripts xml)
+DSTDIRS := $(patsubst %,$(ETCDIR)/%,icons scripts xml)
 
 default: $(DSTFILES) menustrings.py
 	$(MAKE) parsubdirs

+ 0 - 5
gui/wxpython/compat/__init__.py

@@ -1,5 +0,0 @@
-"""
-Backward compatibility modules for Python 2.3
-"""
-__author__ = "PSF/GRASS Development Team"
-

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1149
gui/wxpython/compat/subprocess.py


+ 3 - 9
gui/wxpython/core/gcmd.py

@@ -31,15 +31,7 @@ import errno
 import signal
 import locale
 import traceback
-
-import wx
-
-try:
-    import subprocess
-except:
-    compatPath = os.path.join(globalvar.ETCWXDIR, "compat")
-    sys.path.append(compatPath)
-    import subprocess
+import subprocess
 if subprocess.mswindows:
     from win32file import ReadFile, WriteFile
     from win32pipe import PeekNamedPipe
@@ -49,6 +41,8 @@ else:
     import fcntl
 from threading import Thread
 
+import wx
+
 from grass.script import core as grass
 
 from core       import globalvar