mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
#2172 - Expand PATH in the shell for automatic virtualenv
This commit is contained in:
5 files changed
+26
-9
No files matched your search
@@ -10,3 +10,14 @@ Execute(ale#python#FindVirtualenv falls back to $VIRTUAL_ENV when no directories
|
||||
\ ale#python#FindVirtualenv(bufnr('%')),
|
||||
\ '/opt/example/',
|
||||
\ 'Expected VIRTUAL_ENV environment variable to be used, but it was not'
|
||||
|
||||
Execute(ale#python#AutoVirtualenvEnvString should return the correct values):
|
||||
if has('win32')
|
||||
AssertEqual
|
||||
\ 'set PATH=/opt/example/;%PATH% && ',
|
||||
\ ale#python#AutoVirtualenvEnvString(bufnr(''))
|
||||
else
|
||||
AssertEqual
|
||||
\ 'PATH=''/opt/example/''":$PATH" ',
|
||||
\ ale#python#AutoVirtualenvEnvString(bufnr(''))
|
||||
endif
|
||||
Reference in new issue
Block a user