core.jobmon_utils

Functions

true_path(→ str)

Get true path to file or executable.

Module Contents

core.jobmon_utils.true_path(file_or_dir: bytes | str | None = None, executable: str | None = None) str

Get true path to file or executable.

Parameters:
  • file_or_dir (str) – partial file path, to be expanded as per the current user

  • executable (str) – the name of an executable, which will be resolved using “which”

Specify one of the two arguments, not both.