1
0
mirror of https://github.com/wting/autojump synced 2025-06-13 12:54:07 +00:00
This commit is contained in:
Sven T 2013-03-11 15:57:21 -07:00
commit 7d0a05376e

View File

@ -273,7 +273,11 @@ def options():
if (ARGS.add):
if(ARGS.add != os.path.expanduser("~")):
db = Database(DB_FILE)
db.add(decode(ARGS.add))
path = decode(ARGS.add)
if os.path.exists(path):
db.add(os.path.abspath(path))
else:
db.add(path)
return True
if (ARGS.decrease):