Setup be-handle-mail.BE_DIR to point to the BE repo by default.
authorW. Trevor King <wking@drexel.edu>
Fri, 17 Jul 2009 12:21:49 +0000 (08:21 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 17 Jul 2009 12:21:49 +0000 (08:21 -0400)
At least, it points to the directory where be-handle-mail lives.  If
you haven't moved it, that will be somewhere inside the BE repository.

This removes my hardcoded BE_DIR.

interfaces/email/interactive/be-handle-mail

index 180320d3b478b16aa0a8eeaf687d2a72f9ea1946..666538db332cf5268208dd1d5b1a2033bee2fd86 100755 (executable)
@@ -41,7 +41,7 @@ import time
 SUBJECT_COMMENT = "[be-bug]"
 HANDLER_ADDRESS = "BE Bugs <wking@thor.physics.drexel.edu>"
 LOGFILE = os.path.join(os.path.dirname(__file__), "be-handle-mail.log")
-BE_DIR = os.path.expanduser("~/src/fun/be/be.email")
+BE_DIR = os.path.abspath(os.path.dirname(__file__))
 
 ALLOWED_COMMANDS = ["new", "comment", "list", "show", "help"]