1
0
mirror of https://github.com/wting/autojump synced 2026-03-02 03:49:26 +00:00

Merge pull request #193 from svent/normalize_paths

normalize path ending before adding to the DB
This commit is contained in:
William Ting
2013-03-11 15:54:15 -07:00

View File

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