import os

def FlagsForFile(filename, **kwargs):

    flags = ['-std=c++14', '-I/usr/local/include']

    proj_root = os.path.dirname(os.path.abspath(__file__))
    libcanon_include = ''.join(['-I', proj_root, '/deps/libcanon/include'])
    proj_include = ''.join(['-I', proj_root, '/drudge'])
    flags.extend([libcanon_include, proj_include])

    return {'flags': flags}

@@ -2,16 +2,34 @@
 mport os
+%0Aimport subprocess
 %0A%0Adef Fl
@@ -244,24 +244,160 @@
 /include'%5D)%0A
+    python_include = subprocess.run(%0A        %5B%22pkg-config%22, '--cflags', 'python3'%5D, stdout=subprocess.PIPE%0A    ).stdout.decode(%22utf-8%22)%0A
     proj_inc

Add Python inclusion path to YCM config