From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date:sender:from :to:cc:subject:date:message-id:reply-to; bh=PAeRswGV5Z2lKsEIfo0G+tYOqFkMGiNdcgJhzS1OgIo=; b=WgcBiJXohv+HvSuyjYhALPZkgLxp1T2p2INGbzJqndm6x4u5i9tl/CqzQg+UcsVN50 fUltL3A1t5SaBDX5tqUoWxxoVOOF3oOzsJPEYqlCXAT6YCIBaAGNQwtMgzc+9Sx2d+Ua MFr5q9/RYGQ0eAF+dO04bARFC8E4zMR2/YdZEh90rttNjjzxO9k7HMjy4xfEHWQHLSwj NyVPbTMER9PA3lzxdcPHi95W5QsAx5LxR7kTOGs5VHZhxPgHhd/K8JNW1OYhzN1cUt2D D3YuPHqgEDgdbibObPW5Z/8eZyqxvfCrc4NmndVG3MXTWPZKnOSUKt0XtzVqpfeLd9Hj Tyzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PAeRswGV5Z2lKsEIfo0G+tYOqFkMGiNdcgJhzS1OgIo=; b=uwu0quLl4n794+xdZ0aLeThfXzsal6MMJx+vG2yG/Sztf4/faZnfzdN4U/HI1zxrBx eDFWjQdkg3BTrwRUhg30yFgimIebR5CO8DXFouQVsV1HCTZj2aH3NRaGW5KAPK843YDX /fAey8gbvAgCa4CoQYPukTdIiPoqyaAMI8Ln005w93xuWJGyFzDtA5gVquzPcNFNmhC3 vjEOGBdpjCadzlg05wJO/mSpG+sFQ106w9b1QWD6mP07n4dGKQhaYx/vq1DdAXqb2fCc TsBz/TtECX8DvjLPQ9QpuZwUKpLYTxzUtg9V8za7b3zi+fZUcQbStK+jznw6bFXRbp3e feYQ== X-Gm-Message-State: ANoB5pmv3yZv6pIJCe8sM9ZTphpzfObohiRYGjYepHqZ1KvhoLvepXHi /Hid0HD1nSAemEktKgVy/jJ/JtzAijw= X-Google-Smtp-Source: AA0mqf7SDbA3DjxXQZ6O38g4SI6D7EyRY1IJyg2zVPg8QsKHSRqxV/vWC/KdVU3LB05khd+DX4STMA== X-Received: by 2002:a05:6512:138f:b0:4ab:534b:1b2c with SMTP id p15-20020a056512138f00b004ab534b1b2cmr3496550lfa.426.1668411330090; Sun, 13 Nov 2022 23:35:30 -0800 (PST) Sender: "Ivan A. Melnikov" Date: Mon, 14 Nov 2022 11:35:28 +0400 From: "Ivan A. Melnikov" To: "devel@ where you _can_ ask" Message-ID: <20221114073528.wikxhpefllho2zbb@titan.localdomain> References: <1394111668161945@mail.yandex.ru> <20221111120147.typb7lwaxc57rhm3@titan.localdomain> <20221111120755.GD5130@altlinux.org> <955281668410573@mail.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <955281668410573@mail.yandex.ru> Subject: Re: [newbies] forbidden requires: python-base X-BeenThere: devel-newbies@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "devel@ where you _can_ ask" List-Id: "devel@ where you _can_ ask" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2022 07:35:33 -0000 Archived-At: List-Archive: On Mon, Nov 14, 2022 at 10:31:57AM +0300, Den hilltracer wrote: > find . -type f ! -path '*/\.*' -name '*.py' -exec sed \ >      -i -e 's/\/usr\/bin\/env python.*/\/usr\/bin\/env python2/g' -e > 's/\/bin\/python.*/\/bin\/python2/g' {} + \ > -or ! -path '*/\.*' -type f ! -name '*.*' -exec sed \ >      -i 's/\/usr\/bin\/env python.*/\/usr\/bin\/env python2/g' {} + Если предполагается эти скрипты запускать только системным питоном, возможно, имеет смысл и здесь заменять шебанг на #!/usr/bin/python2. -- wbr, iv m.