Permalink
Browse files

Add missing argument in os.path.islink()

  • Loading branch information...
1 parent 8223d16 commit 1b203e1b8624821147e9e1116e62ccd94ae99770 Corentin Smith committed Aug 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/code_swarm
View
@@ -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))

0 comments on commit 1b203e1

Please sign in to comment.