Use ExMachina already in Plinth/vendor.

This commit is contained in:
Nick Daly 2013-09-15 21:55:23 -05:00
parent 87753531d2
commit c99f074f22
4 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@ CSS=$(wildcard *.css)
CSS=$(subst .tiny,,$(shell find themes -type f -name '*.css'))
COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
PWD=`pwd`
BUILDDIR=vendor
# hosting variables
SLEEP_TIME=300
@ -29,6 +30,8 @@ install: default
$(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
cp -a static themes $(DESTDIR)$(DATADIR)/
cp -a *.py modules templates $(DESTDIR)$(PYDIR)/
mkdir -p $(DESTDIR)$(PYDIR)/exmachina
cp -a vendor/exmachina/exmachina.py $(DESTDIR)$(PYDIR)/exmachina/.
cp share/init.d/plinth $(DESTDIR)/etc/init.d
install plinth $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/var/lib/plinth/cherrypy_sessions $(DESTDIR)/var/log/plinth $(DESTDIR)/var/run

View File

@ -114,7 +114,7 @@ def setup():
pass
try:
from exmachina import ExMachinaClient
from vendor.exmachina.exmachina import ExMachinaClient
except ImportError:
cfg.exmachina = None
print "unable to import exmachina client library, but continuing anyways..."

View File

@ -5,6 +5,6 @@
export PYTHONPATH
sudo killall exmachina.py
sudo /usr/share/pyshared/exmachina/exmachina.py -v &
sudo vendor/exmachina/exmachina.py -v &
python plinth.py
sudo killall exmachina.py

View File

@ -1,6 +1,5 @@
#! /bin/sh
PYTHONPATH=build/exmachina:$PYTHONPATH
PYTHONPATH=modules/installed/lib:$PYTHONPATH
PYTHONPATH=vendor:$PYTHONPATH