Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Calculate root path when `code_swarm` is a symbolic link #7

merged 1 commit into from Feb 14, 2012


None yet
2 participants

mdippery commented Dec 13, 2010

If code_swarm is a symbolic link, the script currently resolves the root_path() as the directory containing the link. This makes it difficult to link to the code_swarm binary from, e.g., a directory on the $PATH (such as /usr/local/bin). This patch finds the "real path" for a symlink and uses the directory of the target to calculate the root_path().

Correctly resolve root path if `code_swarm` is a symlink
This will make it easier to install code_swarm, or link to the
`code_swarm` binary from a directory on the $PATH.

rictic added a commit that referenced this pull request Feb 14, 2012

Merge pull request #7 from mdippery/pu/resolve-root-path
Calculate root path when `code_swarm` is a symbolic link

@rictic rictic merged commit 99e7c61 into rictic:master Feb 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment