File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed
Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ * Add 'pymode_paths' option
5+
46## 2012-04-18 0.6.3
57-------------------
68* Fix pydocs integration
Original file line number Diff line number Diff line change @@ -263,6 +263,9 @@ Other stuff
263263
264264Default values: ::
265265
266+ " Additional python paths
267+ let g:pymode_paths = []
268+
266269 " Load breakpoints plugin
267270 let g:pymode_breakpoint = 1
268271
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ to install the pylint or rope library on your system.
4343The script provides the following options that can customise the behaviour the
4444PythonMode. These options should be set in your vimrc.
4545
46+ | 'pymode_paths' | Additional python paths for pymode
47+
4648| 'pymode_doc' | Turns off the documentation script
4749
4850| 'pymode_doc_key' | Key for show documentation
@@ -116,6 +118,13 @@ PythonMode. These options should be set in your vimrc.
116118To enable any of the below options you should put the given line in your
117119'$HOME/.vimrc'. See | vimrc-intro | .
118120
121+ ------------------------------------------------------------------------------
122+ *'pymode_paths'*
123+ Values: List of strings
124+ Default: [].
125+
126+ This option set additional python import paths
127+
119128------------------------------------------------------------------------------
120129 *'pymode_doc'*
121130Values: 0 or 1.
Original file line number Diff line number Diff line change @@ -36,15 +36,19 @@ endif
3636
3737" DESC: Fix python path
3838if ! pymode#Default (' g:pymode_path' , 1 ) || g: pymode_path
39+
40+ call pymode#Default (' g:pymode_paths' , [])
41+
3942python << EOF
4043import sys, vim , os
4144
4245curpath = vim .eval (" getcwd()" )
4346libpath = os.path .join (os.path .dirname (os.path .dirname (
4447 vim .eval (" expand('<sfile>:p')" ))), ' pylibs' )
4548
46- sys.path = [libpath, curpath] + sys.path
49+ sys.path = [libpath, curpath] + vim . eval ( " g:pymode_paths " ) + sys.path
4750EOF
51+
4852endif
4953
5054
You can’t perform that action at this time.
0 commit comments