소스 검색

wxGUI g.gui.rlisetup: fix config file open mode for write in text mode (#410)

Tomas Zigo 5 년 전
부모
커밋
545c77107b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gui/wxpython/rlisetup/wizard.py

+ 1 - 1
gui/wxpython/rlisetup/wizard.py

@@ -144,7 +144,7 @@ class RLIWizard(object):
 
     def _write_confile(self):
         """Write the configuration file"""
-        f = open(os.path.join(self.rlipath, self.startpage.conf_name), 'wb')
+        f = open(os.path.join(self.rlipath, self.startpage.conf_name), 'w')
         self.rasterinfo = grast.raster_info(self.startpage.rast)
         self._write_region(f)
         self._write_area(f)