git-cola/git-cola — pull request #98 by mwh (2011-11-11 23:19:59+00:00)
Title: Search for libraries in executable needs to be aware of symlinks

Currently git-cola uses os.path.dirname(os.path.abspath(__file__)) to find where it put its libraries. That fails when "git-cola" in PATH is a symlink to the real location, because it truncates the path relative to the link rather than the true location of the file, resulting in adding a nonsensical location to sys.path and failing to import cola.app. It needs to use os.path.realpath to resolve any link before manipulating the path.