Utilities

qts.util.exec(execable: qts.util.ExecProtocol) int[source]

Call the proper execute method on the passed object. Either .exec() or .exec_() is chosen based on the configured wrapper. .exec_() exists as an artifact from supporting Python 2 where exec was a keyword.

class qts.util.ExecProtocol(*args, **kwargs)[source]

Bases: Protocol

A protocol that requires the presence of either .exec() or .exec_() if the selected wrapper requires the trailing _.

exec_() int[source]

Used only in cases where the trailing _ is required.

exec() int[source]

Used in all cases where the trailing _ is not required