chiark / gitweb /
Fix the dev-cura script
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 26 Jan 2016 18:05:02 +0000 (13:05 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 26 Jan 2016 18:05:02 +0000 (13:05 -0500)
The shebang needs to be the first line of the script.
Use python instead of /usr/bin/python
Do not override PYTHONPATH, just add the current dir to it.

dev-cura

index 22133cf90dd734a4f9183606e0c395aecbef7b63..9cd99f4619e104bdce9cf3b1319961d07984af5a 100755 (executable)
--- a/dev-cura
+++ b/dev-cura
@@ -1,3 +1,3 @@
-## cura
 #!/bin/sh
-PYTHONPATH=. /usr/bin/python ./scripts/linux/cura.py "$@"
+## cura
+PYTHONPATH=$PYTHONPATH:. python ./scripts/linux/cura.py "$@"