RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
generator.file_helper Namespace Reference

Functions

 find_file (filepath, root_directories=["CFGPATH"], resource_directories=["config", "audio", "image", "model", "dictionary", "data"], exception=False)
 Verifies that the given input file path exist in one of the root directories.
 
 resolve_path (path)
 Resolve the given path.
 

Function Documentation

◆ find_file()

generator.file_helper.find_file ( filepath,
root_directories = ["CFGPATH"],
resource_directories = ["config", "audio", "image", "model", "dictionary", "data"],
exception = False )

Verifies that the given input file path exist in one of the root directories.

Root directories are iterated by order and will stop the process when one full path is valid In case the filepath is found the result is returned

◆ resolve_path()

generator.file_helper.resolve_path ( path)

Resolve the given path.