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

ok this time it should really work :-/

This commit is contained in:
Joel Schaerer dedibox 2009-05-13 13:28:18 +02:00
parent 621ee1fc7f
commit 278ea9cc01

View File

@ -22,8 +22,7 @@ from sys import argv,exit
import os
import signal
max_keyweight=1000
global dead_dirs #global variable (evil ;-) to know if we should save the dict at the end
dead_dirs=False
dead_dirs=False #global variable (evil ;-) to know if we should save the dict at the end
def signal_handler(arg1,arg2):
print "Received SIGINT, trying to continue"
@ -45,6 +44,7 @@ def match(path,pattern,path_dict,re_flags=0):
if os.path.exists(path) : return True
else: #clean up dead directories
del path_dict[path]
global dead_dirs
dead_dirs=True
return False