iterative/vscode-dvc

View on GitHub
extension/src/python/path.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { join } from 'path'
import { getProcessPlatform } from '../env'

export const getVenvBinPath = (cwd: string, envDir: string, name: string) =>
  getProcessPlatform() === 'win32'
    ? join(cwd, envDir, 'Scripts', `${name}.exe`)
    : join(cwd, envDir, 'bin', name)