osl_dynamics.files.functions#

Functions used to manage files kept within osl-dynamics.

Module Contents#

Functions#

check_exists(filename, directory)

Looks for a file in the current working directory and in osl-dynamics.

osl_dynamics.files.functions.check_exists(filename, directory)[source]#

Looks for a file in the current working directory and in osl-dynamics.

Parameters:
  • filename (str) – Name of file to look for or a path to a file.

  • directory (str) – Path to directory to look in.

Returns:

filename – Full path to the file if found.

Return type:

str

Raises:

FileNotFoundError – If the file could not be found.