Files
UnrealEngineUWP/Engine/Source/ThirdParty/Python/CopyPythonInstall_Win64.bat
Jack Porter a400cb96bf Merging //UE4/Dev-Main to Dev-Mobile (//UE4/Dev-Mobile)
#rb None
#jira None

[CL 4564204 by Jack Porter in Dev-Mobile branch]
2018-11-13 23:40:18 -05:00

31 lines
861 B
Batchfile

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SET python_dest_name=Win64
SET python_src_name=Python27
SET python_src_dir=C:\%python_src_name%
IF NOT EXIST %python_src_dir% (
ECHO Python Source Directory Missing: %python_src_dir%
GOTO End
)
IF EXIST %python_dest_name% (
ECHO Removing Existing Target Directory: %python_dest_name%
RMDIR "%python_dest_name%" /s /q
)
ECHO Copying Python: %python_src_dir%
XCOPY /s /i /q "%python_src_dir%" "%python_dest_name%"
XCOPY /s /i /q "NoRedist\%python_dest_name%\Microsoft.VC90.CRT" "%python_dest_name%"
XCOPY /q "NoRedist\TPS\PythonWinBin.tps" "%python_dest_name%"
XCOPY /q "NoRedist\TPS\VisualStudio2008.tps" "%python_dest_name%"
XCOPY /q "%WINDIR%\System32\python27.dll" "%python_dest_name%"
RMDIR "%python_dest_name%\Doc" /s /q
DEL "%python_dest_name%\Lib\*.pyc" /s /q
DEL "%python_dest_name%\w9xpopen.exe"
:End
PAUSE