mirror of https://github.com/python/cpython
Try /var/mail before trying /usr/mail. Most new systems use /var.
This in inside the test so it really doesn't matter much. Closes SF patch 497097.
This commit is contained in:
parent
eff724490f
commit
03f3ee6d89
|
@ -276,6 +276,9 @@ def _test():
|
||||||
if mbox[:1] == '+':
|
if mbox[:1] == '+':
|
||||||
mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
|
mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
|
||||||
elif not '/' in mbox:
|
elif not '/' in mbox:
|
||||||
|
if os.path.isfile('/var/mail/' + mbox):
|
||||||
|
mbox = '/var/mail/' + mbox
|
||||||
|
else:
|
||||||
mbox = '/usr/mail/' + mbox
|
mbox = '/usr/mail/' + mbox
|
||||||
if os.path.isdir(mbox):
|
if os.path.isdir(mbox):
|
||||||
if os.path.isdir(os.path.join(mbox, 'cur')):
|
if os.path.isdir(os.path.join(mbox, 'cur')):
|
||||||
|
|
Loading…
Reference in New Issue