Issues with python on windows
Closed this issue · 1 comments
jcwoltz commented
Hello,
Thank you for writing this library. I had to modify _get_url in order to get this library to work on windows. Python 2.7.
This line:
os.path.join(self.base_url, command, self.public_key) + ext
would give me http://data.sparkfun.com/input\\publickey.json
as an ugly hack, I modified it to:
b = str(self.base_url) + str(command) + "/" + str(self.public_key) + ext
return b
I'm sure there is a better way, but this works for me on both windows and linux python 2.7.x
matze commented
Thanks for the pointer. If there are still problems, just re-open the issue.