Skip to content

Commit

Permalink
Merge pull request rictic#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 Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 99e7c61

Please sign in to comment.