@@ -385,14 +385,14 @@ def has_path(x):
385
385
386
386
def replace_placeholders (cmd , inputs , outputs ):
387
387
"""
388
- Replaces any placeholder found in ``cmd`` with the path of the respective
388
+ Attemps to replace any placeholder found in ``cmd`` with the path of the respective
389
389
input or output Drop from ``inputs`` or ``outputs``.
390
- Placeholders have the different formats:
391
390
392
- * ``%iN``, with N starting from 0, indicates the path of the N-th element
393
- from the ``inputs`` argument; likewise for ``%oN``.
394
- * ``%i[X]`` indicates the path of the input with UID ``X``; likewise for
395
- ``%o[X]``.
391
+ This will attempt to use the value from the associated input or output DROP,
392
+ provided it has a `path` attribute.
393
+
394
+ Sometimes there will be no matching replacement, in which case the argument is not
395
+ replaced.
396
396
"""
397
397
398
398
logger .debug (
@@ -413,7 +413,6 @@ def replace_placeholders(cmd, inputs, outputs):
413
413
except AttributeError :
414
414
logger .debug ("Input %s does not have 'dataUrl' attr" , attr )
415
415
416
-
417
416
logger .debug ("Command after path placeholder replacement is: %s" , cmd )
418
417
419
418
return cmd
@@ -423,12 +422,12 @@ def replace_dataurl_placeholders(cmd, inputs, outputs):
423
422
"""
424
423
Replaces any placeholder found in ``cmd`` with the dataURL property of the
425
424
respective input or output Drop from ``inputs`` or ``outputs``.
426
- Placeholders have the different formats:
427
425
428
- * ``%iDataURLN``, with N starting from 0, indicates the path of the N-th
429
- element from the ``inputs`` argument; likewise for ``%oDataURLN``.
430
- * ``%iDataURL[X]`` indicates the path of the input with UID ``X``; likewise
431
- for ``%oDataURL[X]``.
426
+ This will attempt to use the value from the reciprocal input or output DROP,
427
+ provided it has a `dataURL` attribute.
428
+
429
+ Sometimes there will be no matching replacement, in which case the argument is not
430
+ replaced.
432
431
"""
433
432
434
433
# Inputs/outputs that are not FileDROPs or DirectoryContainers can't
0 commit comments