sksurgerycore.utilities.file_utilities module

File processing utils.

sksurgerycore.utilities.file_utilities.get_absolute_path_of_file(file_name, dir_name=None)[source]

Filenames in our .json config could be absolute or relative to the current working dir. This method tries to find the valid, full file path.

Parameters:
  • file_name
  • dir_name – prefix, for example, the dirname of our .json file.
Returns:

absolute path name of file if found, otherwise None.