r2e: use PYTHONPATH to find and run rss2email.
authorW. Trevor King <wking@tremily.us>
Thu, 18 Oct 2012 12:59:10 +0000 (08:59 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 18 Oct 2012 12:59:14 +0000 (08:59 -0400)
This should make it easier for r2e to work where several Python
version are installed on the same machine.

r2e

diff --git a/r2e b/r2e
index a2cf9afa2169fecae69decd3c475023d22fd7ba6..83851b950c07f62b9521b0fc15383835702aa5c7 100755 (executable)
--- a/r2e
+++ b/r2e
@@ -1,2 +1,2 @@
 #!/bin/sh
-python3 rss2email.py -c config -d feeds.dat $*
+python3 -c 'import rss2email; rss2email.run()' -c config -d feeds.dat $*