mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix issue with missing environment vars
This commit is contained in:
parent
d172b910c9
commit
83f24d6e49
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,13 @@ Function Get-Settings {
|
|||
|
||||
$ini = @{}
|
||||
|
||||
If ( -Not (Test-Path env:SrcDir)) {
|
||||
$env:SrcDir = $(git rev-parse --show-toplevel).Replace("/", "\")
|
||||
}
|
||||
If ( -Not (Test-Path env:PyVerMajor)) { $env:PyVerMajor = "3" }
|
||||
If ( -Not (Test-Path env:PyVerMinor)) { $env:PyVerMinor = "7" }
|
||||
If ( -Not (Test-Path env:PyDir)) { $env:PyDir = "C:\Python37" }
|
||||
|
||||
# Location where the files are kept
|
||||
$Settings = @{
|
||||
"SrcDir" = "$env:SrcDir"
|
||||
|
|
Loading…
Add table
Reference in a new issue