Permalink
Browse files

Merge pull request #287 from pcc/resolve-paths

Have getCompilationDBParams resolve paths relative to command's working directory
  • Loading branch information...
Rip-Rip committed Mar 4, 2013
2 parents 058a174 + 608f794 commit c021ee9c5c54f54c1e03a9f325d22e5353d9cce4
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/libclang.py
View
@@ -289,7 +289,8 @@ def getCompilationDBParams(fileName):
continue
if arg == '-c':
continue
- if arg == fileName or os.path.realpath(arg) == fileName:
+ if arg == fileName or \
+ os.path.realpath(os.path.join(cwd, arg)) == fileName:
continue
if arg == '-o':
skip_next = 1;

0 comments on commit c021ee9

Please sign in to comment.