shithub: pokered

Download patch

ref: 7a566260e6b324f40a58f4f4967718a2d95a4d8c
parent: 41d6f23943f655ce45a005bdb00d25c239f14ffd
author: IIMarckus <iimarckus@gmail.com>
date: Wed Mar 14 16:44:07 EDT 2012

Remove python shebangs.

- Not all systems have /usr/bin/python
- On those that do, it is not always python 2
- These files aren't marked executable anyway

Just use "python whatever.py" via shell instead.

hg-commit-id: 09184f4c838d


--- a/extras/add_map_labels_to_map_headers.py
+++ b/extras/add_map_labels_to_map_headers.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2011-01-04
 #purpose: insert labels into map headers
--- a/extras/analyze_incbins.py
+++ b/extras/analyze_incbins.py
@@ -1,8 +1,7 @@
-#!/usr/bin/python2.7
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-03
 #purpose: map which addresses are left
-#note: using python2.7 because of subprocess
+#note: use python2.7 because of subprocess
 import sys, os
 from copy import copy, deepcopy
 import subprocess
--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-06
 #analyze texts, how many commands are unknown?
--- a/extras/connection_helper.py
+++ b/extras/connection_helper.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-15
 #help with connection math
--- a/extras/extract_maps.py
+++ b/extras/extract_maps.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-02
 #url: http://hax.iimarck.us/files/rbheaders.txt
--- a/extras/extract_tileblocks.py
+++ b/extras/extract_tileblocks.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-14
 #split out blocksets into binary data files
--- a/extras/extract_tilesets.py
+++ b/extras/extract_tilesets.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-14
 #throw tilesets into separate files
--- a/extras/fix_labels.py
+++ b/extras/fix_labels.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-27
 #fix trainer header labels to not suck so much
--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-09
 import extract_maps
--- a/extras/insert_object_data.py
+++ b/extras/insert_object_data.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python2.7
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-05
 #insert object data into pokered.asm
--- a/extras/insert_texts.py
+++ b/extras/insert_texts.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python2.7
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-07, 2012-01-17, 2012-01-27
 #insert TX_FAR targets into pokered.asm
--- a/extras/make_map_size_constants.py
+++ b/extras/make_map_size_constants.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-15
 #dump map height/width constants
--- a/extras/map_block_dumper.py
+++ b/extras/map_block_dumper.py
@@ -1,8 +1,7 @@
-#!/usr/bin/python2.7
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-03
 #purpose: extract .blk files from baserom.gbc
-#note: using python2.7 because of subprocess in analyze_incbins
+#note: use python2.7 because of subprocess in analyze_incbins
 import extract_maps #rom, assert_rom, load_rom, calculate_pointer, load_map_pointers, read_all_map_headers, map_headers
 from pretty_map_headers import map_name_cleaner
 from analyze_incbins import asm, offset_to_pointer, find_incbin_to_replace_for, split_incbin_line_into_three, generate_diff_insert, load_asm, isolate_incbins, process_incbins
--- a/extras/pretty_map_headers.py
+++ b/extras/pretty_map_headers.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 # -*- coding: utf-8 -*-
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-02
--- a/extras/pretty_text.py
+++ b/extras/pretty_text.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-16
 from optparse import OptionParser
--- a/extras/pretty_trainer_headers.py
+++ b/extras/pretty_trainer_headers.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-24
 from optparse import OptionParser
--- a/extras/replace_dimensions.py
+++ b/extras/replace_dimensions.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-15
 #replace dimensions with constants
--- a/extras/romvisualizer.py
+++ b/extras/romvisualizer.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-13
 import os
--- a/extras/romviz.py
+++ b/extras/romviz.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-10
 #show me an image
--- a/extras/text_pointers.py
+++ b/extras/text_pointers.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 #author: Bryan Bishop <kanzure@gmail.com>
 #date: 2012-01-03
 #utilities for working with text pointers
--- a/textpre.py
+++ b/textpre.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 
 import sys