Commit 349044f7 349044f729e5a653fd61520765cac367ddee5671 by Nicolas Perriault

fixes #88 - Can't open 'bootstrap.js' using symbolic links (@anthony-teinturier)

1 parent 6cc9c8ee
...@@ -7,7 +7,8 @@ import sys ...@@ -7,7 +7,8 @@ import sys
7 7
8 def resolve(path): 8 def resolve(path):
9 if os.path.islink(path): 9 if os.path.islink(path):
10 return resolve(os.readlink(path)) 10 path = os.path.join(os.path.dirname(path), os.readlink(path))
11 return resolve(path)
11 return path 12 return path
12 13
13 PHANTOMJS_NATIVE_ARGS = [ 14 PHANTOMJS_NATIVE_ARGS = [
......