Project

General

Profile

Bug #618

Snowberry: Hardcoded paths to user documents

Added by danij about 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
Start date:
2009-02-26
% Done:

100%


Description

It would seem that in places, Snowberry has hardcoded paths to the user's "My Documents" folder, which obviously may not be in the "official" place (having been moved by the user) or under Vista, in c:\Users\<user name>\Documents instead.

Traceback (most recent call last):
File "snowberry.py", line 25, in <module>
File "language.pyc", line 23, in <module>
File "paths.pyc", line 358, in <module>
File "paths.pyc", line 146, in _checkSnowberryHome
File "paths.pyc", line 104, in _createDir
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\Users\\moldytomato\\My Documents\\Doomsday Frontend'

I'm still trying to understand why I don't have the same problem.

Labels: Snowberry

History

#1 Updated by skyjake about 15 years ago

Does revision 6428 help? I don't have Vista where I could test it.

#2 Updated by danij about 15 years ago

It does help but only in the situation were the location of Documents is actually the default location i.e., c:\Users\<user name>\Documents. If this location has been changed, the problem persists.

I know its possible to query the OS for this location via the Win32 API so I presume there must be some way of accessing this via some Python module. I'll do some digging.

#3 Updated by danij over 14 years ago

Snowberry is to be phased out and replaced with an in-game counterpart.

Also available in: Atom PDF