tvm_tirx.support.utils

Contents

tvm_tirx.support.utils#

Common system utilities

Classes#

DirectoryCreatedPastAtExit

Raised when a TempDirectory is created after the atexit hook runs.

TempDirectory([custom_path, keep_for_debug])

Helper object to manage temp directory during testing.

FileLock(path)

File lock object

Functions#

tempdir([custom_path, keep_for_debug])

Create temp dir which deletes the contents when exit.

filelock(path)

Create a file lock which locks on path

is_source_path(path)

Check if path is source code path.

which(exec_name)

Try to find full path of exec_name