

def composeFileCommand(command, lineObjs):
    command = command.decode('utf-8')
    paths = [("'%s'" % lineObj.getPath()) for lineObj in lineObjs]
    path_str = ' '.join(paths)
    if ('$F' in command):
        command = command.replace('$F', path_str)
    else:
        command = ((command + ' ') + path_str)
    return command

dataset/ETHPy150Open facebook/PathPicker/src/output.py composeFileCommand/original