[0.6a] fileservice.py exception when HOME environment variable does not exist (windows)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wxBanker |
Fix Released
|
Medium
|
Michael Rooney |
Bug Description
Here's the traceback from a windows system:
Traceback (most recent call last):
File "C:\Projects\
main()
File "C:\Projects\
app = init()
File "C:\Projects\
bankController = Controller(path)
File "C:\Projects\
self.
File "C:\Projects\
configPath = fileservice.
File "C:\Projects\
return __getFilePath(
File "C:\Projects\
if not os.path.
UnboundLocalError: local variable 'pathdir' referenced before assignment
The pathdir var needs a default value.
Consider using the USERPROFILE environment variable (or the HOMEDRIVE + HOMEPATH pair) on the win32 platform.
summary: |
- fileservice.py exception when HOME environment variable does not exist - (windows) + [0.6a] fileservice.py exception when HOME environment variable does not + exist (windows) |
Changed in wxbanker: | |
status: | Fix Committed → Fix Released |
Thanks for the report! I have a continuous integration server set up at http:// wxbanker. ath.cx: 8080 which runs the tests on Linux in python 2.5 and 2.6 every night, which should in theory catch things like this, except I don't have a Windows/OSX box. Thanks for reminding me to set up a Windows and OSX VM to start making sure things work there too :)
That traceback confuses me though, how is pathdir unassigned there? I can see where it would crash on finding 'HOME' or something but I don't see a code path that leads to pathdir not having been assigned.