Skip to content

Commit

Permalink
Fixed bug 1532843. Show profile errors, restore Defaults profile to e…
Browse files Browse the repository at this point in the history
…nable successful startup.
  • Loading branch information
skyjake committed Aug 13, 2006
1 parent 666e741 commit f670415
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snowberry/sb/profdb.py
Expand Up @@ -213,9 +213,16 @@ def restore():
# directory.
for name in _listProfilesIn(userProfilePath):
load(os.path.join(userProfilePath, name), False)
logger.show()

defaults = get('defaults')

if defaults is None:
# Recreate the Defaults profile.
load(os.path.join(systemProfilePath, "defaults.prof"), False)
defaults = get('defaults')
logger.show()

# Set the default language.
lang = defaults.getValue('language')
if lang:
Expand Down

0 comments on commit f670415

Please sign in to comment.