| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 4× 1× 1× 3× 2× 1× | import path from 'path'
const uniPath = path.join(__dirname, '..', '..')
const getEnvironmentPath = () => {
if (process.cwd() === uniPath) {
return path.join(uniPath, 'test', 'environment')
} else {
return process.cwd()
}
}
export {
getEnvironmentPath
}
|