diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-09-22 12:51:40 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-09-22 13:19:35 +0300 |
commit | 6a2538ba9fcd96b9df64f6b9ee77d857d8e173c2 (patch) | |
tree | e5ef4a4f0e42e138268f7ab6dc682f1ed6637c8d | |
parent | 637cdd6c665570bbc758a22a7929fc32c66a37ac (diff) | |
download | ydb-6a2538ba9fcd96b9df64f6b9ee77d857d8e173c2.tar.gz |
Intermediate changes
-rwxr-xr-x | ya | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,7 +1,25 @@ -#!/usr/bin/env python +#!/usr/bin/env sh # Please, keep this script in sync with arcadia/ya +# Shell commands follow +# Next line is bilingual: it starts a comment in Python, but do nothing in shell +""":" + +# Find a suitable python interpreter +for cmd in python3 python; do + command -v > /dev/null $cmd && exec `command -v $cmd` $0 "$@" +done + +echo "Python interpreter is not found in this system, please, install python" >&2 + +exit 2 + +":""" +# Previous line is bilingual: it ends a comment in Python, but do nothing in shell +# Shell commands end here +# Python script follows + import os import sys import platform |