From e9155818c8615739a30f5535c92a6f80b08ab59b Mon Sep 17 00:00:00 2001 From: Phil Phillips Date: Sat, 26 Mar 2011 02:46:58 +0800 Subject: [PATCH] Make scripts more compatible across OSes --- utils/img2js.py | 2 +- utils/launch.sh | 2 +- utils/web.py | 2 +- utils/websocket.py | 2 +- utils/websockify | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/img2js.py b/utils/img2js.py index 058c784e..3ba4598e 100755 --- a/utils/img2js.py +++ b/utils/img2js.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Convert image to Javascript compatible base64 Data URI diff --git a/utils/launch.sh b/utils/launch.sh index c21e2baa..613250c6 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash usage() { if [ "$*" ]; then diff --git a/utils/web.py b/utils/web.py index 6b7670b0..23afca08 100755 --- a/utils/web.py +++ b/utils/web.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ''' A super simple HTTP/HTTPS webserver for python. Automatically detect diff --git a/utils/websocket.py b/utils/websocket.py index 8fb9e68f..9a9d52a2 100755 --- a/utils/websocket.py +++ b/utils/websocket.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ''' Python WebSocket library with support for "wss://" encryption. diff --git a/utils/websockify b/utils/websockify index e9ef5b3d..36aba173 100755 --- a/utils/websockify +++ b/utils/websockify @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ''' A WebSocket to TCP socket proxy with support for "wss://" encryption.