Skip to content

Commit b3e7bb9

Browse files
committed
namespace filename fix
1 parent b749293 commit b3e7bb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appdaemon/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class PersistentDict(shelve.DbfilenameShelf):
9191
Dict-like object that uses a Shelf to persist its contents.
9292
"""
9393

94-
def __init__(self, filename, safe: bool, *args, **kwargs):
94+
def __init__(self, filename: Path, safe: bool, *args, **kwargs):
95+
filename = Path(filename).resolve().as_posix()
9596
# writeback=True allows for mutating objects in place, like with a dict.
9697
super().__init__(filename, writeback=True)
9798
self.safe = safe

0 commit comments

Comments
 (0)