summaryrefslogtreecommitdiff
path: root/fix-shebang
diff options
context:
space:
mode:
Diffstat (limited to 'fix-shebang')
-rwxr-xr-xfix-shebang5
1 files changed, 3 insertions, 2 deletions
diff --git a/fix-shebang b/fix-shebang
index 6d78bb0..b3b9844 100755
--- a/fix-shebang
+++ b/fix-shebang
@@ -23,12 +23,13 @@ import tempfile
class FixShebang(cliapp.Application):
def add_settings(self):
- self.add_string_setting(['shebang'], 'interpreter path and args')
+ self.settings.add_string_setting(['shebang'],
+ 'interpreter path and args')
def process_input(self, arg):
name = self.create_tempfile_for(arg)
temp = open(name, 'w')
- shebang = self['shebang']
+ shebang = self.settings['shebang']
if not shebang.startswith('#!'):
shebang = '#!%s' % shebang
temp.write('%s\n' % shebang)