File: 10_pythonpath_in_shellscript.patch

package info (click to toggle)
gnumed-client 1.8.23%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,536 kB
  • sloc: python: 127,070; javascript: 6,113; sh: 1,195; xml: 36; makefile: 33
file content (34 lines) | stat: -rw-r--r-- 1,390 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
Author: Andreas Tille <tille@debian.org>
LastChanged: Mon, 01 Jul 2013 14:09:23 +0200
Forwarded: not needed
Description: Adapt PYTHONPATH

--- a/client/gnumed
+++ b/client/gnumed
@@ -26,13 +26,13 @@ fi
 # packages which install the GNUmed python modules into a path not
 # already accessible for imports via sys.path (say, /usr/share/gnumed/)
 # may need to adjust PYTHONPATH appropriately here
-#export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/usr/share/gnumed/:/usr/share/gnumed/Gnumed/"
+export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/usr/share/gnumed/:/usr/share/gnumed/Gnumed/"
 
 
 # packages which install the GNUmed helper scripts into a
 # path not already accessible via PATH (say, /usr/share/gnumed/bin)
 # may need to adjust PATH appropriately here
-#export PATH="${PATH}:/usr/share/gnumed/bin"
+export PATH="${PATH}:/usr/share/gnumed/bin"
 
 
 # source systemwide startup extension shell script if it exists
--- a/external-tools/gm-import_incoming
+++ b/external-tools/gm-import_incoming
@@ -19,7 +19,7 @@ OPTIONS=$@
 # packages which install the GNUmed python modules into a path not
 # already accessible for imports via sys.path (say, /usr/share/gnumed/)
 # may need to adjust PYTHONPATH appropriately here
-#export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/usr/share/gnumed/"
+export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}/usr/share/gnumed/"
 
 
 # now run the actual script