package phenny tags 516038 + pending thanks On 19-Feb-2009, Josselin Mouette wrote: > It should be trivial to use __file__ instead of hard-coding this > path. This way the modules would be completely relocatable and you > will avoid any potential issues in the future.
In the declared Subversion repository for this package, revision 2631
alters ‘debian/patches/module-home.patch’ as follows:
=== modified file 'debian/patches/module-home.patch'
--- debian/patches/module-home.patch 2008-03-04 20:50:19 +0000
+++ debian/patches/module-home.patch 2009-03-17 18:04:40 +0000
@@ -1,12 +1,12 @@
-diff -Nur phenny-hg3.orig/bot.py phenny-hg3.orig.new/bot.py
---- phenny-hg3.orig/bot.py 2008-03-01 17:39:59.000000000 +0000
-+++ phenny-hg3.orig.new/bot.py 2008-03-01 17:40:15.000000000 +0000
-@@ -10,7 +10,7 @@
- import sys, os, re, threading, imp
+diff -Nur -x '*.orig' -x '*~' phenny-2~hg28/bot.py phenny-2~hg28.new/bot.py
+--- phenny-2~hg28/bot.py 2009-03-17 18:21:38.000000000 +0000
++++ phenny-2~hg28.new/bot.py 2009-03-17 18:22:02.000000000 +0000
+@@ -11,7 +11,7 @@
+ from os import path
import irc
-home = os.getcwd()
-+home = "/var/lib/python-support/python2.5/phenny"
++home = path.dirname(__file__)
def decode(bytes):
try: text = bytes.decode('utf-8')
Since this change is in the Debian VCS repository for the package, and
appears to address this bug report, I am tagging this report as
pending a new package upload.
--
\ “If you can't beat them, arrange to have them beaten.” —George |
`\ Carlin |
_o__) |
Ben Finney <[email protected]>
signature.asc
Description: Digital signature

