Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Barry Warsaw Newsgroups: linux.debian.maint.python Subject: Re: Python program as a command-line program (was: Python package providing both modules and an app) Date: Fri, 24 Jun 2016 21:30:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Jun 24 19:27:50 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Organization: The Organization of Unorganized Woozalists X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/13952 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160624152733.551f7118.barry@wooz.org Approved: robomod@news.nic.it Lines: 12 Sender: robomod@news.nic.it X-Original-Date: Fri, 24 Jun 2016 15:27:33 -0400 X-Original-Message-ID: <20160624152733.551f7118.barry@wooz.org> X-Original-References: <20160621211338.GC2172@hle.local> <8537o6xbf6.fsf@benfinney.id.au> <20160622205419.2f58379f.barry@wooz.org> <85k2hgwvoc.fsf_-_@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:8619 On Jun 23, 2016, at 11:17 AM, Ben Finney wrote: >There isn't, AFAIK, anything portable that I can write in the shebang to >turn a command invocation of =E2=80=98./foo/bar.py=E2=80=99 into =E2=80=98= python3 -m foo.bar=E2=80=99. Why not just have a file that contains only? exec python3 -m foo.bar Cheers, -Barry