From 7798d924be15c67fd57ace20100660eccdaecffe Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 29 Aug 2014 20:18:58 +0530 Subject: [PATCH] Create pythonic startup script --- bin/plinth | 23 ++++++++++++++++++++--- start.sh | 7 ------- 2 files changed, 20 insertions(+), 10 deletions(-) delete mode 100755 start.sh diff --git a/bin/plinth b/bin/plinth index dc862109d..03bbcbe9a 100644 --- a/bin/plinth +++ b/bin/plinth @@ -1,4 +1,21 @@ -#!/bin/sh +#!/usr/bin/python +# +# This file is part of Plinth. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# -export PYTHONPATH=/usr/share/plinth/python -exec python /usr/share/plinth/python/plinth/plinth.py "$@" +import plinth.__main__ + +plinth.__main__.main() diff --git a/start.sh b/start.sh deleted file mode 100755 index 0ee1c534d..000000000 --- a/start.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/sh - -#PYTHONPATH=$PYTHONPATH - -export PYTHONPATH - -python plinth.py