Changed Shebang line of python scripts.

It's mostly about making the scripts run if python defaults to python3.
Has been tested for each script.
This commit is contained in:
Severin Glöckner 2016-11-05 18:32:52 +01:00
parent 3b46cd30a8
commit 06d9909c86
21 changed files with 22 additions and 22 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# encoding: utf-8
"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# expand-terrain-macros.py - Expand "meta-macros" for terrain WML
#

View file

@ -1,9 +1,9 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
journeylifter -- turn in-line track markers into a journey file.
Run in the scenario drectory of a campaign. Generates a journey.cfg and
Run in the scenario directory of a campaign. Generates a journey.cfg and
rewrites the files to reference it.
All mainline campaigns have already undergone this conversion; this script

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
from gimpfu import *

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Automagically set the village_per_scout parameters in MP scenarios.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# encoding: utf-8
"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
'''
trackplacer -- map journey track editor.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import glob, os, sys, time, re
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from . import html_output

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# vim: tabstop=4: shiftwidth=4: expandtab: softtabstop=4: autoindent:
#
"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8
"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8
import wmldata, os, glob, sys
import re

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8
"""

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
wmlflip -- coordinate transformation for .cfg macro calls.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
wmltest -- tool to validate the syntax and semantics of WML.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
from subprocess import Popen, PIPE
from time import clock, time
import datetime

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# codelist
# given list of integers, one per line, outputs a minimal list of ranges
# describing the list

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# encoding: utf-8
# pofix - perform string fixups on incoming .po files.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import os, sys, shutil
base_path = os.path.dirname(os.path.realpath(__file__))
usage = "usage: update_version current_version new_version \ne.g.: update_version 2.0.0 2.0.1"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
This script is used to detect functions in the source code which are no longer

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# wescamp_import -- generate a shellscript to import a campaign from WesCamp
#

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# vim: tabstop=4: shiftwidth=4: expandtab: softtabstop=4: autoindent:
"""