aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xpush.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 25e47c1..e60d901 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/push.py b/push.py
index 93bf6d0..2fa1832 100755
--- a/push.py
+++ b/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', [])