Ensure that a given program name is absolute.
This commit is contained in:
parent
56e103ce01
commit
a6c723eddc
|
@ -264,6 +264,10 @@ def parse_config (archive, format, encoding, command, **kwargs):
|
||||||
config['program'] = find_archive_program(format, command)
|
config['program'] = find_archive_program(format, command)
|
||||||
for key, value in kwargs.items():
|
for key, value in kwargs.items():
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
if key == 'program':
|
||||||
|
program = util.find_program(value)
|
||||||
|
if program:
|
||||||
|
value = program
|
||||||
config[key] = value
|
config[key] = value
|
||||||
program = os.path.basename(config['program'])
|
program = os.path.basename(config['program'])
|
||||||
if encoding and not find_encoding_program(program, encoding):
|
if encoding and not find_encoding_program(program, encoding):
|
||||||
|
|
Loading…
Reference in New Issue