mflowm.helpers

Module Contents

Functions

file_path(→ str)

Makes sure a string represents a valid, existing file, this can be used with argparse as a valid argument type.

mflowm.helpers.file_path(filename: str) str

Makes sure a string represents a valid, existing file, this can be used with argparse as a valid argument type.

Parameters:

filename (str) – The filename to test

Raises:

FileNotFoundError – When the file is not found.

Returns:

The filename, unmodified.

Return type:

str