Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Another megabytes the dust.


devel / comp.lang.python / Re: "py" command for Linux and Mac?

SubjectAuthor
o Re: "py" command for Linux and Mac?MRAB

1
Re: "py" command for Linux and Mac?

<mailman.385.1652376792.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=18243&group=comp.lang.python#18243

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: "py" command for Linux and Mac?
Date: Thu, 12 May 2022 18:33:02 +0100
Lines: 21
Message-ID: <mailman.385.1652376792.20749.python-list@python.org>
References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
<be65008f-bb85-b4cf-7ef0-c5fc255a93a0@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de wkubFTmAhnOxB91+bNRKig3sEpXDqQBcpMkpFErxTamg==
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=b6CFw43h;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'searching': 0.05;
'windows,': 0.05; '"python': 0.07; '2.7': 0.09; 'dan': 0.09;
'from:addr:python': 0.09; 'linux': 0.09; 'pypi,': 0.09;
'received:192.168.1.64': 0.09; 'steps': 0.11; 'that.': 0.15;
'does,': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16;
'porting': 0.16; 'python3.': 0.16; 'received:plus.net': 0.16;
'subject:: "': 0.16; 'subject:Mac': 0.16; 'wrote:': 0.16;
'python': 0.16; 'probably': 0.17; 'to:addr:python-list': 0.20;
'code': 0.23; 'command': 0.23; '(and': 0.25; 'tried': 0.26;
'header:User-Agent:1': 0.30; 'received:192.168.1': 0.32; 'but':
0.32; "i'm": 0.33; 'subject:for': 0.33; 'particular': 0.33;
'header:In-Reply-To:1': 0.34; "it's": 0.37; 'received:192.168':
0.37; 'use': 0.39; 'search': 0.61; "there's": 0.61; 'finally':
0.62; 'gives': 0.62; 'received:212': 0.62; 'ever': 0.63; 'heard':
0.67; 'skip:# 10': 0.68; "you'll": 0.73
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1652376784; bh=y4RcQE/PK8yFvyBEY1Wy1oizTuw3vRlzVIhS8yP4HVs=;
h=Date:Subject:To:References:From:In-Reply-To;
b=b6CFw43ht1U3uj6i+AYVsYoHMHP0xqCJFgVFiHsreLYZRt31kQx7JRUGLTw3LHoz0
83Er5pRQYgGrn38VK14anoyfsTvLHqI4MenPgwPXiM4uTUTXzVH1tshMQR4jyipp55
fFriKO8nEOhpgncBf8KGlKph7B2zWhOJef7aViaicfTOa1oO8xzpTG2qHZCj+NGYZi
zaz+d98Lo+IPtIEFXmKO57qF5tbG7f5sMdq1rARnZC6NdGmrbuCRIQYi80SlP78TQp
VMLdn/4n/18a3svFzA6axZQseS521QDTGa7GduIuJJ6VAZC5IH5wU0lMwQ/JDck8/t
Bcp/e2qEZOzdw==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=Uo9wis8B c=1 sm=1 tr=0 ts=627d44d0
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=3U6a0Sy-CDXSCh4m3ZkA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
Content-Language: en-GB
In-Reply-To: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
X-CMAE-Envelope: MS4xfPhFPUxEyBhjLI9bbap6vDTuDxM156mpEwbbPj9uMc3Il7CCPRURThJPCVAcGy9Z5wVZ8Ax8K+C/eSk1nU/04njRYbYIHTbAmnJxGXmFR+Gx+2cyuikR
q78YagzLJTFf9oT2IAcOlMgsPWj2+nMV978PMA5JkNm8ZUGPM+cL7gi/GUaBFXrJJ1mQZToZtkmrvQ3xReLs1vWzQqM1WSfvTZs=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <be65008f-bb85-b4cf-7ef0-c5fc255a93a0@mrabarnett.plus.com>
X-Mailman-Original-References: <CAGGBd_pQSH5UUKQkOiStgytW5JMV9aND2OPrC-AL3eBMgT9yQw@mail.gmail.com>
 by: MRAB - Thu, 12 May 2022 17:33 UTC

On 2022-05-12 17:25, Dan Stromberg wrote:
> Hi folks.
>
> I heard there's a Windows-like "py" command for Linux (and Mac?).
>
> I'm finally getting to porting a particular project's Python 2.7 code to
> 3.x, and one of the first steps will probably be changing a lot of "python2
> script.py" to use #!/usr/bin/env python2 and chmod +x. Then we can update
> the scripts one at a time to use #!/usr/bin/env python3.
>
> However, would this be Linux-and-Mac-only? I'm not at all sure this code
> will ever move to Windows, but in case it does, would a "py" command work
> on all 3 if I use #!/usr/bin/env py?
>
> And if so, where can I find that "py" command for Linux and Mac?
>
> I tried searching for it in Google and on Pypi, but unsurprisingly
> searching for "py" gives a buzzillion hits on other things.
>
It's called the "Python Launcher"; you'll get more helpful results if
you search for that.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor