From d2e879be4a4ca62150e3860b92d1f0fc4f7c9774 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 4 Mar 2018 12:01:31 -0800 Subject: [PATCH] Add PlexPy.py file to run Tautulli.py --- PlexPy.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PlexPy.py diff --git a/PlexPy.py b/PlexPy.py new file mode 100644 index 00000000..c583df6c --- /dev/null +++ b/PlexPy.py @@ -0,0 +1,28 @@ +#!/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 Tautulli. +# +# Tautulli is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Tautulli is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Tautulli. If not, see . + +from Tautulli import main + +# Call main() from Tautulli.py +if __name__ == "__main__": + main()