Skip to content

Commit

Permalink
fix execfile use when py2 to py3
Browse files Browse the repository at this point in the history
  • Loading branch information
TTWShell committed Jun 5, 2018
1 parent 970ddef commit c191c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ import sys
if 'VIRTUAL_ENV' in os.environ:
project_base_dir = os.environ['VIRTUAL_ENV']
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
exec(compile(open(activate_this, "rb").read(), activate_this, 'exec'), dict(__file__=activate_this))
EOF

" Ctrl-j 切换到下方的分割窗口 - Ctrl-k 切换到上方的分割窗口 - Ctrl-l
Expand Down

0 comments on commit c191c9d

Please sign in to comment.