#833: Preferences not saved
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
With the new preferences location for GRASS 7, the .grasswx7 file is not
being saved. Trying to save generates an error. In fact, I'm not sure that
the new location is even being made. I'll see if I can find it but I want
to get this reported in case I run short on time.
Additional info on this. The error raised is below. A really weird thing
is that it is somehow finding my source directory for GRASS 7 instead of
either my Home directory or the Directory it is run from
(/Applications/grass)[[BR]]
[[BR]]
Traceback (most recent call last):
File "/Users/cmbarton/grass_dev/grass70_dev/dist.i386
-apple-darwin9.8.0/etc/wxpython/gui_modules/preferences.py",
line 1760, in OnSave
file = self.settings.SaveToFile()
File "/Users/cmbarton/grass_dev/grass70_dev/dist.i386
-apple-darwin9.8.0/etc/wxpython/gui_modules/preferences.py",
line 678, in SaveToFile
The problem was that if the new ~/.grass7 directory did not exist it would
cause an error. Fixed in r39935. If the directory does not exist, the
module tries to create it, raising an error if it is unable to do so.