Use with_child instead of manual string building.
This commit is contained in:
parent
8c9588497c
commit
f102d09a4b
1 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ def RARCOMMAND(
|
||||||
else:
|
else:
|
||||||
input_pattern = path.absolute_path
|
input_pattern = path.absolute_path
|
||||||
|
|
||||||
command.append(f'{workdir.absolute_path}{os.sep}{basename}.rar')
|
command.append(workdir.with_child(f'{basename}.rar').absolute_path)
|
||||||
command.append(f'{input_pattern}')
|
command.append(f'{input_pattern}')
|
||||||
|
|
||||||
return command
|
return command
|
||||||
|
@ -142,8 +142,8 @@ def PARCOMMAND(workdir, basename, par):
|
||||||
'c', '-t1',
|
'c', '-t1',
|
||||||
f'-r{par}',
|
f'-r{par}',
|
||||||
'--',
|
'--',
|
||||||
f'{workdir.absolute_path}{os.sep}{basename}',
|
workdir.with_child(f'{basename}').absolute_path,
|
||||||
f'{workdir.absolute_path}{os.sep}{basename}*.rar',
|
workdir.with_child(f'{basename}*.rar').absolute_path,
|
||||||
]
|
]
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue