Skip to content

Commit

Permalink
Changed Shebang line of python scripts.
Browse files Browse the repository at this point in the history
It's mostly about making the scripts run if python defaults to python3.
Has been tested for each script.
  • Loading branch information
sevu committed Nov 25, 2016
1 parent 3b46cd3 commit 06d9909
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion data/tools/campaign2wiki.py
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# encoding: utf-8

"""
Expand Down
2 changes: 1 addition & 1 deletion data/tools/expand-terrain-macros.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# expand-terrain-macros.py - Expand "meta-macros" for terrain WML
#
Expand Down
4 changes: 2 additions & 2 deletions data/tools/journeylifter
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/tools/rmtrans/rmtrans.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

from gimpfu import *

Expand Down
2 changes: 1 addition & 1 deletion data/tools/scoutDefault.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Automagically set the village_per_scout parameters in MP scenarios.

Expand Down
2 changes: 1 addition & 1 deletion data/tools/terrain2wiki.py
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# encoding: utf-8

"""
Expand Down
2 changes: 1 addition & 1 deletion data/tools/trackplacer
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
'''
trackplacer -- map journey track editor.
Expand Down
2 changes: 1 addition & 1 deletion data/tools/unit_tree/overview.py
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wesnoth/wescamp.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# vim: tabstop=4: shiftwidth=4: expandtab: softtabstop=4: autoindent:
#
"""
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wesnoth/wmldata.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8

"""
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wesnoth/wmlparser.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8
import wmldata, os, glob, sys
import re
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wesnoth/wmlparser2.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# encoding: utf-8

"""
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wmlflip
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
wmlflip -- coordinate transformation for .cfg macro calls.
Expand Down
2 changes: 1 addition & 1 deletion data/tools/wmlvalidator
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""
wmltest -- tool to validate the syntax and semantics of WML.
Expand Down
2 changes: 1 addition & 1 deletion utils/ai_test/ai_test.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
from subprocess import Popen, PIPE
from time import clock, time
import datetime
Expand Down
2 changes: 1 addition & 1 deletion utils/codelist
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/pofix.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# encoding: utf-8

# pofix - perform string fixups on incoming .po files.
Expand Down
2 changes: 1 addition & 1 deletion utils/umc_dev/build/update_version
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion utils/unused_functions.py
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/wescamp_import
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# wescamp_import -- generate a shellscript to import a campaign from WesCamp
#
Expand Down
2 changes: 1 addition & 1 deletion utils/wiki_grabber.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# vim: tabstop=4: shiftwidth=4: expandtab: softtabstop=4: autoindent:

"""
Expand Down

0 comments on commit 06d9909

Please sign in to comment.