Fix config file priority for display, and batch subprocess commands

This commit is contained in:
Lance Edgar 2023-10-24 09:53:40 -05:00
parent 549976dcfb
commit 72e4daafc1
2 changed files with 3 additions and 3 deletions

View file

@ -931,7 +931,7 @@ class BatchMasterView(MasterView):
prefix = self.rattail_config.get('rattail', 'command_prefix',
default=sys.prefix)
cmd = [os.path.join(prefix, 'bin/{}'.format(command))]
for path in reversed(self.rattail_config.files_read):
for path in self.rattail_config.prioritized_files:
cmd.extend(['--config', path])
if username:
cmd.extend(['--runas', username])