Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit f15334b162bd0f3f939f3879fbec1935bd094c8c 1 parent cc1daa4
@mdippery mdippery authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 bin/code_swarm
View
5 bin/code_swarm
@@ -96,9 +96,8 @@ def main():
def root_path():
"Returns the path of the code_swarm source directory"
- path = os.path.dirname(__file__)
- path = os.path.dirname(path)
- return path
+ real_path = os.path.join(os.path.dirname(__file__), os.readlink(__file__))
+ return os.path.dirname(real_path)
def invoke_code_swarm(code_swarm_jar, proj_cfg, options):
Please sign in to comment.
Something went wrong with that request. Please try again.