Browse files

Make the lock file path configurable.

  • Loading branch information...
1 parent 198c5ea commit ad627f958e39fc9a6108efc824c3dab441aa96b4 Dan Fairs committed Mar 9, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 django_mailer/engine.py
View
3 django_mailer/engine.py
@@ -26,7 +26,8 @@
if LOCK_WAIT_TIMEOUT and LOCK_WAIT_TIMEOUT < 0:
LOCK_WAIT_TIMEOUT = 0
-LOCK_PATH = os.path.join(tempfile.gettempdir(), 'send_mail')
+LOCK_PATH = getattr(settings, "MAILER_LOCK_PATH",
+ os.path.join(tempfile.gettempdir(), 'send_mail'))
logger = logging.getLogger('django_mailer.engine')

0 comments on commit ad627f9

Please sign in to comment.