File tree 2 files changed +21
-12
lines changed
2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,6 @@ endfunction "}}}
12
12
" DESC: Import python libs
13
13
fun ! pymode#init (plugin_root, paths) " {{{
14
14
15
- if g: pymode_python == ' disable'
16
- if g: pymode_warning
17
- call pymode#error (" Pymode requires vim compiled with +python. Most of features will be disabled." )
18
- endif
19
- return
20
- endif
21
-
22
15
PymodePython import sys, vim
23
16
PymodePython sys.path .insert (0 , vim .eval (' a:plugin_root' ))
24
17
PymodePython sys.path = vim .eval (' a:paths' ) + sys.path
Original file line number Diff line number Diff line change @@ -2,15 +2,31 @@ if !g:pymode || pymode#default('b:pymode', 1)
2
2
finish
3
3
endif
4
4
5
+ if g: pymode_python == ' disable'
6
+
7
+ if g: pymode_warning
8
+ call pymode#error (" Pymode requires vim compiled with +python. Most of features will be disabled." )
9
+ endif
10
+
11
+ finish
12
+
13
+ else
14
+
15
+
5
16
let b: pymode_modified = &modified
6
17
7
18
" Init paths
8
19
if ! pymode#default (' g:pymode_init' , 1 )
9
- call pymode#init (expand (' <sfile>:p:h:h:h' ), g: pymode_paths )
10
- call pymode#virtualenv#init ()
11
- call pymode#breakpoint#init ()
12
- PymodePython from pymode.utils import patch_paths
13
- PymodePython patch_paths ()
20
+
21
+ call pymode#init (expand (' <sfile>:p:h:h:h' ), g: pymode_paths )
22
+ call pymode#virtualenv#init ()
23
+ call pymode#breakpoint#init ()
24
+
25
+ PymodePython from pymode.utils import patch_paths
26
+ PymodePython patch_paths ()
27
+
28
+ endif
29
+
14
30
endif
15
31
16
32
command ! - buffer -nargs =1 PymodeVirtualenv call pymode#virtualenv#activate (<args> )
You can’t perform that action at this time.
0 commit comments