diff options
Diffstat (limited to 'net-mail/rss2email/files/rss2email-2.69-config-location.patch')
-rw-r--r-- | net-mail/rss2email/files/rss2email-2.69-config-location.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mail/rss2email/files/rss2email-2.69-config-location.patch b/net-mail/rss2email/files/rss2email-2.69-config-location.patch new file mode 100644 index 000000000000..215c1725a9c1 --- /dev/null +++ b/net-mail/rss2email/files/rss2email-2.69-config-location.patch @@ -0,0 +1,16 @@ +--- rss2email.py 2010-11-25 02:22:14.607431246 +0100 ++++ rss2email.py 2010-11-25 02:26:54.478306015 +0100 +@@ -254,7 +254,12 @@ + + # Read options from config file if present. + import sys +-sys.path.insert(0,".") ++import os ++_conf_dir = os.path.expanduser('~/.rss2email') ++if not os.path.exists(os.path.join(_conf_dir, 'config.py')): ++ _conf_dir = '/etc/rss2email' ++sys.path.insert(0, _conf_dir) ++ + try: + from config import * + except: |