From: anthonybaxter Date: Thu, 19 Jul 2001 05:46:47 +0000 (+0000) Subject: modified to use localconfig.py (if it exists) and to make the X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=547bf27eaaea3943be7daa1e92e4f1e675dad154;p=roundup.git modified to use localconfig.py (if it exists) and to make the various options (e.g. paths) based on ROUNDUP_HOME &c. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@8 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/config.py b/config.py index 8dafdc8..c684e36 100644 --- a/config.py +++ b/config.py @@ -1,14 +1,34 @@ +ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=None + +try: + from localconfig import * +except ImportError: + localconfig = None + +import os + +# This is the root directory for roundup +if not ROUNDUP_HOME: + ROUNDUP_HOME='/home/httpd/html/roundup' + +# The SMTP mail host that roundup will use to send mail +if not MAILHOST: + MAILHOST = 'localhost' + +# The domain name used for email addresses. +if not MAIL_DOMAIN: + MAIL_DOMAIN = 'bizarsoftware.com.au' + # This is the directory that the database is going to be stored in -DATABASE = '/home/httpd/html/roundup/db' +DATABASE = os.path.join(ROUNDUP_HOME, 'db') # The email address that mail to roundup should go to -ISSUE_TRACKER_EMAIL = 'issue_tracker@bizarsoftware.com.au' +ISSUE_TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN # The email address that roundup will complain to if it runs into trouble -ADMIN_EMAIL = "roundup-admin@bizarsoftware.com.au" - -# The SMTP mail host that roundup will use to send mail -MAILHOST = 'dirk' +ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN # Somewhere for roundup to log stuff internally sent to stdout or stderr -LOG = '/home/httpd/html/roundup/roundup.log' +LOG = os.path.join(ROUNDUP_HOME, 'roundup.log') + +del os