From c8f1cb0a0af5d912d3afc0fef19091ef4942065a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 25 Mar 2016 09:12:40 -0700 Subject: [PATCH] Start PlexPy for different environment variables --- PlexPy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PlexPy.py b/PlexPy.py index 15e3212e..258233a3 100755 --- a/PlexPy.py +++ b/PlexPy.py @@ -1,4 +1,9 @@ -#!/usr/bin/env python +#!/bin/sh +''''which python >/dev/null 2>&1 && exec python "$0" "$@" # ''' +''''which python2 >/dev/null 2>&1 && exec python2 "$0" "$@" # ''' +''''which python2.7 >/dev/null 2>&1 && exec python2.7 "$0" "$@" # ''' +''''exec echo "Error: Python not found!" # ''' + # -*- coding: utf-8 -*- # This file is part of PlexPy.