We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8acb90c commit 6dff027Copy full SHA for 6dff027
2 files changed
after/plugin/pymode_virtualenv.vim
@@ -7,7 +7,19 @@ if !g:pymode_virtualenv || !g:pymode
7
finish
8
endif
9
10
+call helpers#SafeVar("g:pymode_virtualenv_enabled", [])
11
+
12
fun! pymode_virtualenv#Activate() "{{{
13
14
+ for env in g:pymode_virtualenv_enabled
15
+ if env == $VIRTUAL_ENV
16
+ return 0
17
+ endif
18
+ endfor
19
20
+ call add(g:pymode_virtualenv_enabled, $VIRTUAL_ENV)
21
+ echomsg "Enabled virtualenv: " . $VIRTUAL_ENV
22
23
python << EOF
24
ve_dir = os.environ['VIRTUAL_ENV']
25
ve_dir in sys.path or sys.path.insert(0, ve_dir)
ftplugin/python/pymode.vim
@@ -22,7 +22,6 @@ endif
" Add virtualenv paths
if g:pymode_virtualenv && exists("$VIRTUAL_ENV")
- echomsg "Enabled virtualenv: " . $VIRTUAL_ENV
26
call pymode_virtualenv#Activate()
27
28
0 commit comments