Permalink
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...
2 parents f321cc3 + f15334b commit 99e7c61682d0cb8788aeb990910fd0ed849f043b @rictic committed Feb 14, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 bin/code_swarm
View
@@ -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):

0 comments on commit 99e7c61

Please sign in to comment.