container

pilot.util.container.containerise_executable(executable, **kwargs)[source]

Wrap the containerisation command around the executable.

Parameters:
  • executable – command to be wrapper (string).

  • kwargs – kwargs dictionary.

Returns:

containerised executable (list).

pilot.util.container.execute(executable, **kwargs)[source]

Execute the command and its options in the provided executable list. The function also determines whether the command should be executed within a container.

Parameters:
  • executable – command to be executed (string or list).

  • returnproc) (kwargs (timeout, usecontainer,)

Returns:

exit code, stdout and stderr (or process if requested via returnproc argument)

pilot.util.container.is_python3()[source]

Check if we are running on Python 3.

Returns:

boolean.