nutools/lib/pywrapper

22 lines
603 B
Plaintext
Raw Normal View History

2013-08-27 15:14:44 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
scriptname="$(basename "$0")"
if [ "$scriptname" == "pywrapper" ]; then
if [ -n "$*" ]; then
nutoolsdir="$(cd "$(dirname "$0")/.."; pwd)"
scriptname="$(basename "$1" .py)"
shift
else
echo "Faire
ln -s /path/to/nutools/SCRIPT /path/to/nutools/lib/pywrapper
pour lancer pyulib/src/uapps/SCRIPT.py"
exit 1
fi
else
nutoolsdir="$(cd "$(dirname "$0")"; pwd)"
fi
source "$nutoolsdir/ulib/nutools/pyulib"
exec "$nutoolsdir/pyulib/src/uapps/$scriptname.py" "$@"