浏览代码

g.gui.rlisetup: fix problem of configuration file on windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60780 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 11 年之前
父节点
当前提交
9b855f9bb7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/rlisetup/wizard.py

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

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