diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-23 20:35:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-30 18:57:18 +0300 |
commit | e218d8c24bfbd5384e040417e533ede96c4e831b (patch) | |
tree | 962ef76ad77e62e4c1eb66bcac093e55c10cd2e1 /build_files/windows/format.cmd | |
parent | fd48e17461e391c90ff9af96650480b35190e37e (diff) |
Build: integrate make_update.py into Windows make.bat
Diffstat (limited to 'build_files/windows/format.cmd')
-rw-r--r-- | build_files/windows/format.cmd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build_files/windows/format.cmd b/build_files/windows/format.cmd index f036257e220..43f8b61727d 100644 --- a/build_files/windows/format.cmd +++ b/build_files/windows/format.cmd @@ -9,7 +9,7 @@ exit /b 1 :detect_done echo found clang-format in %CF_PATH% -if EXIST %BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe ( +if EXIST %PYTHON% ( set PYTHON=%BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe goto detect_python_done ) @@ -25,6 +25,7 @@ set FORMAT_PATHS=%BLENDER_DIR%\source\tools\utils_maintenance\clang_format_paths REM The formatting script expects clang-format to be in the current PATH. set PATH=%CF_PATH%;%PATH% -%PYTHON% %FORMAT_PATHS% %FORMAT_ARGS% +REM Use -B to avoid writing __pycache__ in lib directory and causing update conflicts. +%PYTHON% -B %FORMAT_PATHS% %FORMAT_ARGS% :EOF |