py3: Fix up (almost) all script invocations to rely on shebangs.

This follows up on 207cf6302 from last year to clean up cases that
have apparently popped up since then.  Invoking the scripts directly
makes a cleaner command line in any case, and moreover is essential
to how we control running a Zulip install as either Python 2 or 3
(soon, how we always ensure it runs as Python 3.)

One exception: we're currently forcing `provision` in dev to run
Python 3, while still running both Python 2 and Python 3 jobs in CI.
We use a non-shebang invocation to do the forcing of Python 3.
This commit is contained in:
Greg Price
2017-08-03 14:45:22 -07:00
committed by Tim Abbott
parent 67745f849b
commit e469578a55
6 changed files with 21 additions and 18 deletions

3
tools/js-dep-visualizer.py Normal file → Executable file
View File

@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""
$ python ./tools/js-dep-visualizer.py
$ ./tools/js-dep-visualizer.py
$ dot -Tpng var/zulip-deps.dot -o var/zulip-deps.png
"""