Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 694509f

Browse files
authored
Add UV Virtual Environment support (#386)
1 parent ea4b215 commit 694509f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nodeenv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,8 @@ def get_env_dir(args):
10881088
res = sys.prefix
10891089
elif 'CONDA_PREFIX' in os.environ:
10901090
res = sys.prefix
1091+
elif 'VIRTUAL_ENV' in os.environ:
1092+
res = os.environ['VIRTUAL_ENV']
10911093
else:
10921094
logger.error('No python virtualenv is available')
10931095
sys.exit(2)

0 commit comments

Comments
 (0)