File: pypath.patch

package info (click to toggle)
weather-util 2.4.4-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 35,408 kB
  • sloc: python: 2,214; makefile: 15
file content (20 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Make weather module private
 Configure the weather script to find its Python module named weather
 in a private /usr/share/weather-util directory, to avoid polluting
 the global module search path for other scripts.
Forwarded: not-needed
Author: Jeremy Stanley <fungi@yuggoth.org>
Last-Update: 2012-06-24
Index: weather-2.0/weather
===================================================================
--- weather-2.0.orig/weather	2012-06-24 19:13:09.000000000 +0000
+++ weather-2.0/weather	2012-06-24 19:13:28.000000000 +0000
@@ -9,7 +9,7 @@
 """Wrapper utility using the weather.py module."""
 
 # added so distributors can consistently specify a private module location
-private_module_path = None
+private_module_path = "/usr/share/weather-util"
 if private_module_path:
     import sys
     sys.path.insert(1, private_module_path)