Skip to content

Commit f0ddcdf

Browse files
authored
Merge pull request #1104 from goravsingal/fips
Build python script changes, Create directory only if directory does not exists
2 parents ec3b83f + 65f90d0 commit f0ddcdf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/windows/python_build/build_python.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
New-Item -ItemType directory -Path C:\python_dev
2-
New-Item -ItemType directory -Path C:\buildtools
1+
if (!(Test-Path 'C:\python_dev')) {
2+
New-Item 'C:\python_dev' -ItemType Directory
3+
}
4+
if (!(Test-Path 'C:\buildtools')) {
5+
New-Item 'C:\buildtools' -ItemType Directory
6+
}
37
Copy-Item 'build.bat' -Destination 'C:\python_dev\build.bat' -Force
48
Copy-Item 'fips_python.patch' -Destination 'C:\python_dev\fips_python.patch' -Force
59

0 commit comments

Comments
 (0)