whaleygeek / pyenergenie

A python interface to the Energenie line of products
MIT License
81 stars 51 forks source link

Dynamic registry path lookup #104

Closed jmigreen closed 5 years ago

jmigreen commented 5 years ago

Makes the registry path dynamic so scripts can reference it from any working directory.

whaleygeek commented 5 years ago

LGTM.

I did a quick test of sys.path[0], to check that it behaves as we expect...

# test.py
import sys
print(sys.path[0])

I ran this from current directory and also the parent directory, and the correct path is printed. So this seems a safe change to accept.

whaleygeek commented 5 years ago

Fixes https://github.com/whaleygeek/pyenergenie/issues/103