[Python-apps-commits] r765 - in packages/phenny/trunk/debian/patches (expand-home.patch)

nslater-guest at users.alioth.debian.org nslater-guest at users.alioth.debian.org
Tue Mar 4 22:05:54 UTC 2008


    Date: Tuesday, March 4, 2008 @ 22:05:52
  Author: nslater-guest
Revision: 765

added patch to expand homedir

Added:
  packages/phenny/trunk/debian/patches/expand-home.patch

Added: packages/phenny/trunk/debian/patches/expand-home.patch
===================================================================
--- packages/phenny/trunk/debian/patches/expand-home.patch	                        (rev 0)
+++ packages/phenny/trunk/debian/patches/expand-home.patch	2008-03-04 22:05:52 UTC (rev 765)
@@ -0,0 +1,19 @@
+diff -Nur phenny-2~hg9.orig/bot.py phenny-2~hg9.orig.new/bot.py
+--- phenny-2~hg9.orig/bot.py	2008-03-04 21:59:47.000000000 +0000
++++ phenny-2~hg9.orig.new/bot.py	2008-03-04 22:00:34.000000000 +0000
+@@ -8,6 +8,7 @@
+ """
+ 
+ import sys, os, re, threading, imp
++from os import path
+ import irc
+ 
+ home = os.getcwd()
+@@ -44,6 +45,7 @@
+ 
+       if hasattr(self.config, 'extra'): 
+          for fn in self.config.extra: 
++            fn = path.expanduser(fn)
+             if os.path.isfile(fn): 
+                filenames.append(fn)
+             elif os.path.isdir(fn): 




More information about the Python-apps-commits mailing list