diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | push.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ Forward emails to pushover based on email sender and recipient address. ## Usage Add something similar in /etc/aliases ``` -address: |/path/to/push.py /path/to/push.cfg +address: "|/path/to/push.py /path/to/push.cfg" ``` The path to push.cfg is only needed if it's not in the same diectory as push.py @@ -13,7 +13,7 @@ try: except IndexError: cfg = os.path.dirname(os.path.realpath(__file__)) + '/push.cfg' -with open(cfg) as fh: +with open(cfg, 'r') as fh: maps = yaml.load(fh) sender_map = maps.get('senders', []) |