Fixed bookmarks.d usage.
This commit is contained in:
parent
95e53c6897
commit
3eca12c31a
|
|
@ -74,9 +74,9 @@ class Bookmarks(object):
|
||||||
]
|
]
|
||||||
# Find additional bookmark files in the bookmarks.d folder
|
# Find additional bookmark files in the bookmarks.d folder
|
||||||
try:
|
try:
|
||||||
self.fileList += [ file
|
bookmarksDir = "/etc/openwebrx/bookmarks.d"
|
||||||
for file in os.listdir("/etc/openwebrx/bookmarks.d")
|
self.fileList += [ bookmarksDir + "/" + file
|
||||||
if os.path.isfile(file) and file.endswith(".json")
|
for file in os.listdir(bookmarksDir) if file.endswith(".json")
|
||||||
]
|
]
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue