Skip to content

Commit 250f746

Browse files
fixup! Allow external definition of include and source paths
1 parent 5685765 commit 250f746

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

create_plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ def create_plugin(plugin_name):
1818
f.write("""
1919
let current_dir = expand('<sfile>:p:h/')
2020
let g:include_path = resolve(current_dir . '/' . '../include')
21+
let current_dir = expand('<sfile>:p:h/')
22+
let g:src_path = resolve(current_dir . '/' . '../src')
2123
2224
python3 << EOF
2325
import sys
2426
2527
sys.path.append(vim.eval('g:include_path'))
28+
sys.path.append(vim.eval('g:src_path'))
2629
EOF
2730
""")
2831
f.write("\nsource " + vim_script_path)

0 commit comments

Comments
 (0)