[win] environ['HOME'] not defined on windows

Bug #480172 reported by Sir.Rainbow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
Fix Released
Undecided
Mystilleef

Bug Description

Here the error:

PS E:\marco\src\scribes> python scribes.py
dbus daemon already exists
Traceback (most recent call last):
  File "scribes.py", line 11, in <module>
    main(argv[1:])
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 7, in main
    __open(argv)
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 16, in __open
    __open_via_dbus(uris)
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 24, in __open_via_dbus
    dbus_service = __get_dbus_service()
  File "E:\marco\src\scribes\SCRIBES\Main.py", line 32, in __get_dbus_service
    from Globals import dbus_iface, session_bus
  File "E:\marco\src\scribes\SCRIBES\Globals.py", line 11, in <module>
    home_folder = environ["HOME"]
  File "C:\Python25\lib\os.py", line 433, in __getitem__
    return self.data[key.upper()]
KeyError: 'HOME'

That should mean that environ has no HOME key, but
import os
os.environ["HOME"]
works just fine on my pc...

anyway, fix is to use os.path.expanduser('~') instead

Tags: win
tags: added: win
Revision history for this message
Mystilleef (mystilleef) wrote :

Fixed in build 507

Changed in scribes:
status: New → Fix Released
assignee: nobody → Mystilleef (mystilleef)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.