sk2/autonetkit — Issue #67: Handle no HOME env var on windows
Author: sk2
Created: 2011-10-29 06:29:14+00:00
State: open

Windows may not have home env var set, giving:

File "C:\Python27\lib\site-packages\AutoNetkit\compiler\__init__.py", line 1,
in
from AutoNetkit.compiler.cbgpcompiler import *
File "C:\Python27\lib\site-packages\AutoNetkit\compiler\cbgpcompiler.py", line
27, in
ank_dir = os.environ['HOME'] + os.sep + ".autonetkit"
File "C:\Python27\lib\os.py", line 423, in __getitem__
return self.data[key.upper()]
KeyError: 'HOME'