def modify_autojump_lua(clink_dir, bin_dir, dryrun=False):
 custom_install = ('local AUTOJUMP_BIN_DIR = "%s"\n' % bin_dir.replace('\\', '\\\\'))
 clink_file = os.path.join(clink_dir, 'autojump.lua')
 with open(clink_file, 'r') as f:
  original = f.read()
 with open(clink_file, 'w') as f:
  f.write((custom_install + original))

def modify_autojump_lua ( clink_dir , bin_dir , dryrun = False ) : custom_install = ( 'local AUTOJUMP_BIN_DIR = "%s"\n' % bin_dir . replace ( '\\' , '\\\\' ) ) clink_file = os . path . join ( clink_dir , 'autojump.lua' ) with open ( clink_file , 'r' ) as f : original = f . read ( ) with open ( clink_file , 'w' ) as f : f . write ( ( custom_install + original ) )
prepend custom autojump_bin_dir definition to autojump .