Opened 11 years ago

Closed 11 years ago

#833 closed defect (fixed)

Preferences not saved

Reported by: cmbarton Owned by: grass-dev@…
Priority: major Milestone: 7.0.0
Component: wxGUI Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Michael

Change History (2)

comment:1 Changed 11 years ago by cmbarton

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)

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?

raise gcmd.SettingsError?(message=e) gui_modules.gcmd . SettingsError?

comment:2 Changed 11 years ago by cmbarton

Resolution: fixed
Status: newclosed

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.

Michael

Note: See TracTickets for help on using tickets.