Skip to content

Commit

Permalink
Merge pull request rictic#12 from cosmith/master
Browse files Browse the repository at this point in the history
Add missing argument in os.path.islink()
  • Loading branch information
rictic committed Aug 7, 2013
2 parents 8223d16 + 1b203e1 commit 70867b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/code_swarm
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def main():


def root_path():
"Returns the path of the code_swarm source directory"
"""Returns the path of the code_swarm source directory"""
real_file = __file__
if os.path.islink():
if os.path.islink(__file__):
real_file = os.readlink(__file__)

real_path = os.path.join(os.path.dirname(real_file))
Expand Down

0 comments on commit 70867b3

Please sign in to comment.