From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PLREY-0002sq-Ht for garchives@archives.gentoo.org; Thu, 25 Nov 2010 02:06:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 142F7E0808; Thu, 25 Nov 2010 02:06:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E7563E0808 for ; Thu, 25 Nov 2010 02:06:48 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6CD971B4081 for ; Thu, 25 Nov 2010 02:06:48 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2258) id 2D8D820057; Thu, 25 Nov 2010 02:06:47 +0000 (UTC) From: "Sebastian Pipping (sping)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, sping@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-mail/rss2email/files: rss2email-2.69-config-location.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: rss2email-2.69-config-location.patch X-VCS-Directories: net-mail/rss2email/files X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping Content-Type: text/plain; charset=utf8 Message-Id: <20101125020647.2D8D820057@flycatcher.gentoo.org> Date: Thu, 25 Nov 2010 02:06:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 65054215-f145-4b38-a35d-3e1934bb274c X-Archives-Hash: b9f46aa0c519e37226d8087327b7e441 sping 10/11/25 02:06:47 Added: rss2email-2.69-config-location.patch Log: net-mail/rss2email: Bump to 2.69 =20 (Portage version: 2.1.9.24/cvs/Linux x86_64) Revision Changes Path 1.1 net-mail/rss2email/files/rss2email-2.69-config-locat= ion.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/rss2email= /files/rss2email-2.69-config-location.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/rss2email= /files/rss2email-2.69-config-location.patch?rev=3D1.1&content-type=3Dtext= /plain Index: rss2email-2.69-config-location.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- rss2email.py 2010-11-25 02:22:14.607431246 +0100 +++ rss2email.py 2010-11-25 02:26:54.478306015 +0100 @@ -254,7 +254,12 @@ =20 # Read options from config file if present. import sys -sys.path.insert(0,".") +import os +_conf_dir =3D os.path.expanduser('~/.rss2email') +if not os.path.exists(os.path.join(_conf_dir, 'config.py')): + _conf_dir =3D '/etc/rss2email' +sys.path.insert(0, _conf_dir) + try: from config import * except: