Package: salutatoi / 0.7.0a4-1

0003-Set-PYTHONPATH-in-sat.sh.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 0e30e990c5f9af5cbf72429e56a9759809165a1d Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <robotux@celest.fr>
Date: Thu, 1 Aug 2013 12:51:54 +0200
Subject: Set PYTHONPATH in sat.sh

When sat files are installed as private modules (e.g. in
/usr/share/salutatoi), sat.sh is unable to find sat modules.
This patch sets an empty PYTHONPATH environment variable in sat.sh,
which is set appropriately at installation time by setup.py.

Origin: vendor
Bug: http://bugs.goffi.org/show_bug.cgi?id=51
Forwarded: http://bugs.goffi.org/show_bug.cgi?id=51
Last-Update: 2018-09-02
--- a/bin/sat
+++ b/bin/sat
@@ -3,6 +3,8 @@
 DEBUG=""
 DAEMON=""
 PYTHON="python2"
+PYTHONPATH="/usr/share/salutatoi"
+export PYTHONPATH
 TWISTD="$(which twistd)"
 
 kill_process() {