Ensure that a given program name is absolute.

This commit is contained in:
Bastian Kleineidam 2010-03-01 16:19:48 +01:00
parent 56e103ce01
commit a6c723eddc
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ def parse_config (archive, format, encoding, command, **kwargs):
config['program'] = find_archive_program(format, command)
for key, value in kwargs.items():
if value is not None:
if key == 'program':
program = util.find_program(value)
if program:
value = program
config[key] = value
program = os.path.basename(config['program'])
if encoding and not find_encoding_program(program, encoding):