bergsm / SunLights

Program to adjust TP-Link smart bulbs with the ambient sunlight
GNU General Public License v3.0
0 stars 0 forks source link

Adding relative file paths #22

Closed bergsm closed 5 years ago

bergsm commented 5 years ago

Currently, most of the file paths (if not all) of the file paths are absolute file paths hardcoded in. This won’t fly if the program is installed literally anywhere else.

It looks like we can use os.path.dirname and os.path.abspath with __file__ to retrieve the file paths at runtime.