Skip to content

Commit

Permalink
Merge pull request #7 from mdippery/pu/resolve-root-path
Browse files Browse the repository at this point in the history
Calculate root path when `code_swarm` is a symbolic link
  • Loading branch information
rictic committed Feb 14, 2012
2 parents f321cc3 + f15334b commit 99e7c61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/code_swarm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ def main():


def root_path(): def root_path():
"Returns the path of the code_swarm source directory" "Returns the path of the code_swarm source directory"
path = os.path.dirname(__file__) real_path = os.path.join(os.path.dirname(__file__), os.readlink(__file__))
path = os.path.dirname(path) return os.path.dirname(real_path)
return path




def invoke_code_swarm(code_swarm_jar, proj_cfg, options): def invoke_code_swarm(code_swarm_jar, proj_cfg, options):
Expand Down

0 comments on commit 99e7c61

Please sign in to comment.