void-packages/srcpkgs/bcnc/patches/python2.patch
Urs Schulz 554a0a9773
New package: bcnc-0.9.11
Closes: #12495 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-07 02:41:55 +02:00

15 lines
409 B
Diff

--- bCNC 2017-10-02 14:07:33.000000000 +0200
+++ bCNC 2018-03-14 01:20:39.731648471 +0100
@@ -1,10 +1,10 @@
#!/usr/bin/env sh
-DIR=`dirname $0`
+DIR="$(dirname "$(readlink -f "$0")")"
PYTHONPATH=${DIR}:${DIR}/lib:${DIR}/plugins
export DIR PYTHONPATH
if [ .$PYTHON = . ]; then
PYTHON=python
fi
-${PYTHON} ${DIR}/bCNC.py $*
+python2 ${DIR}/bCNC.py $*
#python -m cProfile -o bCNC.out ${DIR}/bCNC.py $*