Skip to content

Commit

Permalink
locate mailpile executable with distutils.spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Dec 28, 2015
1 parent 6406e1e commit 4d47bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mailpile-admin.py
Expand Up @@ -8,6 +8,7 @@
#
import argparse
import cgi
import distutils.spawn
import getpass
import json
import os
Expand Down Expand Up @@ -196,7 +197,7 @@ def get_os_settings(args):
'apache-user': args.apache_user or 'www-data',
'apache-group': args.apache_group or 'www-data',
'webroot': args.webroot,
'mailpile': os.path.join(mp_root, 'mp'),
'mailpile': (distutils.spawn.find_executable('mailpile') or os.path.join(mp_root, 'mp')),
'mailpile-root': mp_root,
'mailpile-admin': os.path.realpath(sys.argv[0]),
'mailpile-static': os.path.join(mp_root, 'mailpile', 'www', 'default'),
Expand Down

0 comments on commit 4d47bc4

Please sign in to comment.