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 # 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