mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	try to use absolute paths when manually adding
This commit is contained in:
		
							parent
							
								
									54aeff1cae
								
							
						
					
					
						commit
						f4c4b43b33
					
				@ -272,7 +272,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):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user