Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from mdippery/pu/resolve-root-path

Calculate root path when `code_swarm` is a symbolic link
  • Loading branch information...
commit 99e7c61682d0cb8788aeb990910fd0ed849f043b 2 parents f321cc3 + f15334b
@rictic 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.