1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

normalize path ending before adding to the DB

This commit is contained in:
Sven Taute 2013-03-11 20:38:23 +01:00
parent 54aeff1cae
commit 4685d86a17

View File

@ -89,6 +89,7 @@ class Database:
""" """
Increase weight of existing paths or initialize new ones to 10. Increase weight of existing paths or initialize new ones to 10.
""" """
path = path.rstrip(os.sep)
if path not in self.data: if path not in self.data:
self.data[path] = increment self.data[path] = increment
else: else: