From: brian m. carlson Date: Mon, 28 Jan 2019 16:52:36 GMT Subject: Re: [PATCH v2] git-instaweb: Add Python builtin http.server support Message-ID: <20190128165236.GC423984@genre.crustytoothpaste.net> In-Reply-To: <20190128132458.31401-1-arti.zirk@gmail.com> On Mon, Jan 28, 2019 at 03:24:59PM +0200, Arti Zirk wrote: > + # generate a standalone 'python http.server' script in $fqgitdir/gitweb > + # This asumes that python is in user's $PATH > + # This script is Python 2 and 3 compatible > + cat > "$fqgitdir/gitweb/gitweb.py" < +#!/usr/bin/env python I will point out, that despite what the PEPs say, on Debian and derivatives, "python" will always invoke Python 2, and never Python 3. This is probably fine for now, but we'll need to reconsider it before 2020. -- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204