Skip to content

Commit b84b01a

Browse files
committed
Rename profile directory.
1 parent f82b2c9 commit b84b01a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

gateway_addon/database.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@
77

88
_DB_PATHS = [
99
os.path.join(os.path.expanduser('~'),
10-
'mozilla-iot',
11-
'gateway',
12-
'db.sqlite3'),
13-
os.path.join(os.path.expanduser('~'),
14-
'.mozilla-iot',
10+
'.webthings',
1511
'config',
1612
'db.sqlite3'),
17-
os.path.join('.', 'db.sqlite3'), # if cwd is the gateway dir
18-
os.path.join('..', '..', '..', 'db.sqlite3'), # if cwd is the add-on dir
1913
]
2014

2115
if 'WEBTHINGS_HOME' in os.environ:
2216
_DB_PATHS.insert(
23-
0, os.path.join(os.environ['WEBTHINGS_HOME'], 'config', 'db.sqlite3'))
17+
0,
18+
os.path.join(os.environ['WEBTHINGS_HOME'], 'config', 'db.sqlite3')
19+
)
2420

2521
if 'WEBTHINGS_DATABASE' in os.environ:
2622
_DB_PATHS.insert(0, os.environ['WEBTHINGS_DATABASE'])

0 commit comments

Comments
 (0)