diff options
| author | Barry Warsaw | 2008-02-25 15:01:56 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2008-02-25 15:01:56 -0500 |
| commit | 55bb0ccbb79189475d734635087d4de56c44babd (patch) | |
| tree | 27cb5b92d47370267bb6a59737789ff3374e0ae3 /Mailman/configuration.py | |
| parent | 6965bd89216a8d759ff8ea35ca4d1e88b0c35906 (diff) | |
| download | mailman-55bb0ccbb79189475d734635087d4de56c44babd.tar.gz mailman-55bb0ccbb79189475d734635087d4de56c44babd.tar.zst mailman-55bb0ccbb79189475d734635087d4de56c44babd.zip | |
Diffstat (limited to 'Mailman/configuration.py')
| -rw-r--r-- | Mailman/configuration.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Mailman/configuration.py b/Mailman/configuration.py index 7206ec344..1efb08386 100644 --- a/Mailman/configuration.py +++ b/Mailman/configuration.py @@ -72,16 +72,12 @@ class Configuration(object): for name in DEFAULT_QRUNNERS: self.add_qrunner(name) # Load the configuration from the named file, or if not given, search - # in the runtime data directory for an etc/mailman.cfg file. If there - # is an instance.cfg file in the same directory, load that first, then - # mailman.cfg. - # - # Whatever you find, create a namespace and execfile that file in it. - # The values in that namespace are exposed as attributes on this - # Configuration instance. + # around for a mailman.cfg file. Whatever you find, create a + # namespace and execfile that file in it. The values in that + # namespace are exposed as attributes on this Configuration instance. self.filename = None - bin_dir = os.path.dirname(sys.argv[0]) - dev_dir = join(os.path.dirname(bin_dir)) + self.BIN_DIR = os.path.abspath(os.path.dirname(sys.argv[0])) + dev_dir = os.path.dirname(self.BIN_DIR) paths = [ # Development directories. join(dev_dir, 'var', 'etc', 'mailman.cfg'), @@ -99,7 +95,7 @@ class Configuration(object): execfile(path, ns, ns) except EnvironmentError, e: if e.errno <> errno.ENOENT: - # It's okay if the instance.cfg file does not exist. This + # It's okay if the mailman.cfg file does not exist. This # can happen for example in the test suite. raise else: |
