mirror of
https://github.com/Nuitka/Nuitka.git
synced 2026-12-01 18:14:37 +01:00
* Add a pre-commit check that rejects mode changes unless explicitly marked as intended with "GIT_COMMIT=unchecked". * Normalize the ".cmd" helper scripts to mode "644", as Windows batch files do not need the executable bit.
41 lines
1.5 KiB
Batchfile
41 lines
1.5 KiB
Batchfile
@echo off
|
|
rem Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
|
|
|
|
setlocal
|
|
|
|
set "SCRIPT=%~dp0autoformat-nuitka-source"
|
|
|
|
python -c "" >nul 2>nul
|
|
if not errorlevel 1 (
|
|
python "%SCRIPT%" %*
|
|
exit /b
|
|
)
|
|
|
|
if exist "%~dp0..\.vscode\.python_alias_path" (
|
|
for /f "usebackq delims=" %%p in ("%~dp0..\.vscode\.python_alias_path") do (
|
|
"%%p" "%SCRIPT%" %*
|
|
exit /b
|
|
)
|
|
)
|
|
|
|
echo Error: Python not found. Please run 'misc/vscode_config_gen.py' or add Python to PATH.
|
|
exit /b 1
|
|
|
|
rem Part of "Nuitka", an optimizing Python compiler that is compatible and
|
|
rem integrates with CPython, but also works on its own.
|
|
rem
|
|
rem Licensed under the GNU Affero General Public License, Version 3 (the "License");
|
|
rem you may not use this file except in compliance with the License.
|
|
rem You may obtain a copy of the License at
|
|
rem
|
|
rem https://www.gnu.org/licenses/agpl-3.0.txt
|
|
rem
|
|
rem See also: "Nuitka Runtime Library Exception, Version 1.0" in file
|
|
rem "LICENSE-RUNTIME.txt" for additional permissions granted under Section 7.
|
|
rem
|
|
rem Unless required by applicable law or agreed to in writing, software
|
|
rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
rem See the License for the specific language governing permissions and
|
|
rem limitations under the License.
|