Improve YCM contrib: Fix db path

This commit is contained in:
Heewa Barfchin 2016-01-17 20:42:16 -05:00
parent d1aa549735
commit 9c2a156faa

View File

@ -9,7 +9,7 @@ def DirectoryOfThisScript():
def GetDatabase():
compilation_database_folder = os.path.join(DirectoryOfThisScript(),
'..', '..', 'build')
'..', 'build')
if os.path.exists(compilation_database_folder):
return ycm_core.CompilationDatabase(compilation_database_folder)
return None