Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read .tdclirc on windows #2

Closed
doublemarket opened this issue May 17, 2012 · 3 comments
Closed

Failed to read .tdclirc on windows #2

doublemarket opened this issue May 17, 2012 · 3 comments
Assignees
Labels

Comments

@doublemarket
Copy link

Failed to read .tdclirc on windows with following error messages.

C:\Users\hoge>tonicdnscli
Traceback (most recent call last):
File "C:\Python27\Scripts\tonicdnscli-script.py", line 8, in
load_entry_point('tonicdnscli==0.6', 'console_scripts', 'tonicdnscli')()
File "C:\Python27\lib\site-packages\tonicdnscli\command.py", line 387, in main

args = parse_options()
File "C:\Python27\lib\site-packages\tonicdnscli\command.py", line 263, in parse_options
CONFIGFILE = os.environ['HOME'] + '/.tdclirc'
File "C:\Python27\lib\os.py", line 423, in getitem
return self.data[key.upper()]
KeyError: 'HOME'

On windows, os.environ does not have HOME key.
Maybe USERPROFILE will return the home folder of the user on windows.

@ghost ghost assigned mkouhei May 17, 2012
mkouhei added a commit that referenced this issue May 17, 2012
@mkouhei
Copy link
Owner

mkouhei commented May 18, 2012

Hi, Matsuura-san

I fixed this problem in rev 4747af2 of devel branch.
Please try out.

regards,

@mkouhei
Copy link
Owner

mkouhei commented May 22, 2012

Hi,

I released 0.6.1, please try it.

regards,

@mkouhei mkouhei closed this as completed May 22, 2012
@doublemarket
Copy link
Author

Thanks for fixing and I'm sorry I couldn't help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants