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

View File

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

View File

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

View File

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