Skip to content

Commit b84feaf

Browse files
author
Candle - the privacy friendly smart home
authored
0.0.3
fixes for webthings 1.0
1 parent 9ff10f2 commit b84feaf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/p1_adapter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""P1 adapter for Mozilla WebThings Gateway."""
1+
"""P1 adapter for WebThings Gateway."""
22

33
import os
44
from os import path
@@ -37,7 +37,7 @@
3737
os.path.join(os.getcwd(), os.path.dirname(__file__)))
3838

3939
_CONFIG_PATHS = [
40-
os.path.join(os.path.expanduser('~'), '.mozilla-iot', 'config'),
40+
os.path.join(os.path.expanduser('~'), '.webthings', 'config'),
4141
]
4242

4343
if 'MOZIOT_HOME' in os.environ:
@@ -58,10 +58,11 @@ def __init__(self, verbose=True):
5858
print("Initialising P1 adapter")
5959
self.pairing = False
6060
self.name = self.__class__.__name__
61+
self.addon_name = 'p1-adapter'
6162
Adapter.__init__(self, 'p1-adapter', 'p1-adapter', verbose=verbose)
6263
#print("Adapter ID = " + self.get_id())
6364

64-
self.addon_path = os.path.join(os.path.expanduser('~'), '.mozilla-iot', 'addons', 'p1-adapter')
65+
self.addon_path = os.path.join(self.user_profile['addonsDir'], self.addon_name)
6566

6667
self.DEBUG = True
6768
self.first_request_done = False

0 commit comments

Comments
 (0)