Skip to content

Commit 7adaa26

Browse files
committed
Version 0.2.3
1 parent 1d3fcbc commit 7adaa26

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

Changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Changelog
22
=========
33

4-
## 2011-10-17 0.2.2
4+
## 2011-10-17 0.2.3
55
-------------------
6+
* Add current work path to sys.path
67
* Add 'g:pymode' option (disable/enable pylint and rope)
78
* Fix pylint copyright
89

after/plugin/pymode_lint.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ call helpers#SafeVar("g:pymode_lint", 1)
33

44
" DESC: Disable script loading
55
if !g:pymode_lint || !g:pymode
6+
let g:pymode_lint = 0
67
finish
78
endif
89

after/plugin/pymode_rope.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ call helpers#SafeVar("g:pymode_rope", 1)
33

44
" DESC: Disable script loading
55
if !g:pymode_rope || !g:pymode
6+
let g:pymode_rope = 0
67
finish
78
endif
89

ftplugin/python/pymode.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ setlocal tabstop=4
1212
setlocal textwidth=80
1313
setlocal softtabstop=4
1414

15+
" Fix path for project
16+
if g:pymode
17+
18+
py curpath = vim.eval('getcwd()')
19+
py curpath in sys.path or sys.path.append(curpath)
20+
21+
endif
1522

1623
" Python documentation
1724
if g:pymode_doc

plugin/pymode_path.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
" OPTION: g:pymode -- bool. Run pymode.
22
call helpers#SafeVar("g:pymode", 1)
33

4-
let g:pymode_path = 0
5-
64
" DESC: Disable script loading
7-
if !g:pymode || g:pymode_path
5+
if !g:pymode
86
finish
97
endif
108

@@ -15,7 +13,6 @@ if !has('python')
1513
let g:pymode = 0
1614
finish
1715
endif
18-
let g:pymode_path = 1
1916

2017
python << EOF
2118
import sys, os, vim

0 commit comments

Comments
 (0)