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

add no os.path.realpath() comment

This commit is contained in:
William Ting 2013-12-17 09:52:41 -06:00
parent f84dffb7c7
commit bd091b8766

View File

@ -156,7 +156,12 @@ def parse_args(config):
def add_path(config, path, increment=10):
"""Add a new path or increment an existing one."""
"""
Add a new path or increment an existing one.
os.path.realpath() is not used because users prefer to have short, symlinked
paths with duplicate entries in the database than a single canonical path.
"""
path = decode(path).rstrip(os.sep)
if path == os.path.expanduser('~'):
return path, 0