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
|
|
|
|
|
2014-07-08 10:17:45 +04:00
|
|
|
source "$nutoolsdir/lib/ulib/pyulib/pyulib"
|
2014-07-07 22:06:38 +04:00
|
|
|
exec "$nutoolsdir/lib/pyulib/src/uapps/$scriptname.py" "$@"
|