summaryrefslogtreecommitdiff
path: root/bin/backend-run
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-08 14:24:11 +0200
committeremkael <emkael@tlen.pl>2016-06-10 11:46:41 +0200
commit90d93b09640ef2026d4450e17f9e9c5fedb76c81 (patch)
treee168fe5bacfd8fa75ed3a0df0f408f340cb0e755 /bin/backend-run
parent4875abe7602fdf0ac0d4a612fa06b759c68fb178 (diff)
* renaming executables
Diffstat (limited to 'bin/backend-run')
-rwxr-xr-xbin/backend-run6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/backend-run b/bin/backend-run
new file mode 100755
index 0000000..0e93346
--- /dev/null
+++ b/bin/backend-run
@@ -0,0 +1,6 @@
+#!/bin/bash
+DIR=$(dirname $0)
+SCRIPT=$(echo $1 | sed 's/\.py\$//')
+shift
+export PYTHONPATH=$DIR/../app/backend/
+python $PYTHONPATH/$SCRIPT.py $@