Fixed bookmarks.d usage.

This commit is contained in:
Marat Fayzullin 2023-06-30 22:54:42 -04:00
parent 95e53c6897
commit 3eca12c31a
1 changed files with 3 additions and 3 deletions

View File

@ -74,9 +74,9 @@ class Bookmarks(object):
]
# Find additional bookmark files in the bookmarks.d folder
try:
self.fileList += [ file
for file in os.listdir("/etc/openwebrx/bookmarks.d")
if os.path.isfile(file) and file.endswith(".json")
bookmarksDir = "/etc/openwebrx/bookmarks.d"
self.fileList += [ bookmarksDir + "/" + file
for file in os.listdir(bookmarksDir) if file.endswith(".json")
]
except Exception:
pass