mirror of
https://github.com/actions/setup-python.git
synced 2025-07-18 19:18:20 +02:00
Resolve comments
This commit is contained in:
parent
81b3a118a7
commit
16963e0b7e
5 changed files with 51 additions and 77 deletions
|
@ -5,23 +5,6 @@ import * as semver from 'semver';
|
|||
|
||||
import * as installer from './install-python';
|
||||
|
||||
let cacheDirectory = process.env['RUNNER_TOOLSDIRECTORY'] || '';
|
||||
|
||||
if (!cacheDirectory) {
|
||||
let baseLocation;
|
||||
if (process.platform === 'win32') {
|
||||
// On windows use the USERPROFILE env variable
|
||||
baseLocation = process.env['USERPROFILE'] || 'C:\\';
|
||||
} else {
|
||||
if (process.platform === 'darwin') {
|
||||
baseLocation = '/Users';
|
||||
} else {
|
||||
baseLocation = '/home';
|
||||
}
|
||||
}
|
||||
cacheDirectory = path.join(baseLocation, 'actions', 'cache');
|
||||
}
|
||||
|
||||
import * as core from '@actions/core';
|
||||
import * as tc from '@actions/tool-cache';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue