oskusalerma/trelby — pull request #289 by anilgulecha (2012-10-08 05:54:06+00:00)
Title: USERPROFILE was being returned as None. Now fixes #282.

tested this in Vista with a user: अनिल (yours truly in devnagri script). Built/installed/Opened up trelby, changed viewmode to layout. Quit. restarted, and the default viewmode was remember. Implies directories were opened and files were created for this user.

The one line fix was that USERPROFILE has to be a unicode string, or it returns None.