pyc files have now the right destination directory compiled in

This commit is contained in:
Calin Crisan 2015-10-24 14:38:25 +03:00
parent 696d944b2c
commit 47037118ae

View File

@ -53,7 +53,7 @@ define MOTIONEYE_INSTALL_TARGET_CMDS
sed -r -i "s%enable_update=False%enable_update=True%" $(DST_DIR)/handlers.py
# (re)compile all python modules
$($(PKG)_PYTHON_INTERPRETER) -m compileall -f $(DST_DIR)/*.py
$($(PKG)_PYTHON_INTERPRETER) -m compileall -d /usr/lib/python2.7/site-packages/motioneye -f $(DST_DIR)
# meyectl
echo -e '#!/bin/bash\n/usr/bin/python /usr/lib/python2.7/site-packages/motioneye/meyectl.pyc "$$@"' > $(TARGET_DIR)/usr/bin/meyectl