aboutsummaryrefslogtreecommitdiff
path: root/contrib/YouCompleteMe/ycm_extra_conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/YouCompleteMe/ycm_extra_conf.py')
-rw-r--r--contrib/YouCompleteMe/ycm_extra_conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/YouCompleteMe/ycm_extra_conf.py b/contrib/YouCompleteMe/ycm_extra_conf.py
index ae5d3d1a36..0066f96dc0 100644
--- a/contrib/YouCompleteMe/ycm_extra_conf.py
+++ b/contrib/YouCompleteMe/ycm_extra_conf.py
@@ -8,7 +8,8 @@ def DirectoryOfThisScript():
def GetDatabase():
- compilation_database_folder = DirectoryOfThisScript() + '/../build'
+ compilation_database_folder = os.path.join(DirectoryOfThisScript(),
+ '..', 'build')
if os.path.exists(compilation_database_folder):
return ycm_core.CompilationDatabase(compilation_database_folder)
return None