Delete make_path_relative, in python2.6 It"s has os.path.relpath function achieve this functionality.