From: | "Sebastian Pipping (sping)" <sping@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-mail/rss2email/files: rss2email-2.69-config-location.patch |
Date: | Thu, 25 Nov 2010 02:06:50 |
Message-Id: | 20101125020647.2D8D820057@flycatcher.gentoo.org |
1 | sping 10/11/25 02:06:47 |
2 | |
3 | Added: rss2email-2.69-config-location.patch |
4 | Log: |
5 | net-mail/rss2email: Bump to 2.69 |
6 | |
7 | (Portage version: 2.1.9.24/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-mail/rss2email/files/rss2email-2.69-config-location.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/rss2email/files/rss2email-2.69-config-location.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/rss2email/files/rss2email-2.69-config-location.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: rss2email-2.69-config-location.patch |
16 | =================================================================== |
17 | --- rss2email.py 2010-11-25 02:22:14.607431246 +0100 |
18 | +++ rss2email.py 2010-11-25 02:26:54.478306015 +0100 |
19 | @@ -254,7 +254,12 @@ |
20 | |
21 | # Read options from config file if present. |
22 | import sys |
23 | -sys.path.insert(0,".") |
24 | +import os |
25 | +_conf_dir = os.path.expanduser('~/.rss2email') |
26 | +if not os.path.exists(os.path.join(_conf_dir, 'config.py')): |
27 | + _conf_dir = '/etc/rss2email' |
28 | +sys.path.insert(0, _conf_dir) |
29 | + |
30 | try: |
31 | from config import * |
32 | except: |