Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Candle - the privacy friendly smart home authored Dec 6, 2020
1 parent ffd8bbb commit 89bdc68
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/p1_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
from os import path
import sys

sys.path.append(path.join(path.dirname(path.abspath(__file__)), 'lib'))

#import json
Expand Down Expand Up @@ -33,15 +32,12 @@

_TIMEOUT = 3

__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))

_CONFIG_PATHS = [
os.path.join(os.path.expanduser('~'), '.webthings', 'config'),
]

if 'MOZIOT_HOME' in os.environ:
_CONFIG_PATHS.insert(0, os.path.join(os.environ['MOZIOT_HOME'], 'config'))
if 'WEBTHINGS_HOME' in os.environ:
_CONFIG_PATHS.insert(0, os.path.join(os.environ['WEBTHINGS_HOME'], 'config'))



Expand Down

0 comments on commit 89bdc68

Please sign in to comment.