Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #72 from Nealium/windows-path-compatibility
Browse files Browse the repository at this point in the history
fixed activate's PATH addition on windows
  • Loading branch information
jmcantrell committed Nov 17, 2022
2 parents 3f51e6d + ac4fb54 commit b81912f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autoload/virtualenv.vim
Expand Up @@ -46,8 +46,10 @@ function! virtualenv#activate(...)

" Prepend bin to PATH, but only if it's not there already
" (activate_this does this also, https://github.com/pypa/virtualenv/issues/14)
if $PATH[:len(bin)] != bin.':'
let $PATH = bin.':'.$PATH
let PATHsep = has('win32') ? ';' : ':'

if $PATH[:len(bin)] != bin.PATHsep
let $PATH = bin.PATHsep.$PATH
endif

if has('python')
Expand Down

0 comments on commit b81912f

Please sign in to comment.