[med-svn] [gwamar] 08/09: Make sure the internal Python3 scripts will be found

Andreas Tille tille at debian.org
Tue Dec 8 15:50:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository gwamar.

commit ebf5ea2e37ca75f5de5af03de05c8b73ca432f18
Author: Andreas Tille <tille at debian.org>
Date:   Tue Dec 8 16:33:43 2015 +0100

    Make sure the internal Python3 scripts will be found
---
 debian/bin/gwamar | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/bin/gwamar b/debian/bin/gwamar
index 6a6d522..9d4ce36 100644
--- a/debian/bin/gwamar
+++ b/debian/bin/gwamar
@@ -1,2 +1,10 @@
 #!/bin/sh
-python /usr/share/gwamar/gwamar.py $@
+# Since /usr/share/gwamar/gwamar.py does not specify an interpreter line
+# and is not executable we need to set PYTHON3PATH here.
+# 
+# Alternatively patch /usr/share/gwamar/gwamar.py to contain
+#  #!/usr/bin/python3
+# on top, `chmod +x /usr/share/gwamar/gwamar.py` and just symlink to it
+
+export PYTHON3PATH="${PYTHON3PATH:+$PYTHON3PATH:}/usr/share/gwamar/"
+python3 /usr/share/gwamar/gwamar.py $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gwamar.git



More information about the debian-med-commit mailing list