~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/config/config.py

  • Committer: Sambuddha Basu
  • Date: 2015-03-03 22:23:41 UTC
  • Revision ID: sambuddhabasu1@gmail.com-20150303222341-hieql3d1x0u5chq0
Fix mailman start error

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    def _expand_paths(self):
136
136
        """Expand all configuration paths."""
137
137
        # Set up directories.
138
 
        bin_dir = os.path.abspath(os.path.dirname(sys.executable))
 
138
        bin_dir = os.path.abspath(sys.path[0])
139
139
        # Now that we've loaded all the configuration files we're going to
140
140
        # load, set up some useful directories based on the settings in the
141
141
        # configuration file.