We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d556f3e commit 69dc206Copy full SHA for 69dc206
1 file changed
Mailman/Archiver/HyperArch.py
@@ -641,6 +641,7 @@ def __init__(self, maillist):
641
# with mailman's LockFile module for HyperDatabase.HyperDatabase
642
#
643
dir = maillist.archive_dir()
644
+ self.basedir = dir # Set basedir first
645
self.database = HyperDatabase.HyperDatabase(dir, maillist)
646
647
# Initialize basic attributes first
@@ -655,7 +656,7 @@ def __init__(self, maillist):
655
656
657
# Try to load previously pickled state
658
try:
- f = open(os.path.join(dir, 'pipermail.pck'), 'rb')
659
+ f = open(os.path.join(self.basedir, 'pipermail.pck'), 'rb')
660
self.message(C_('Reloading pickled archive state'))
661
662
# Try UTF-8 first for newer files
0 commit comments