spectrochempy.pathclean

pathclean(paths)[source][source]

Clean a path or a series of path.

The aim is to be compatible with windows and unix-based system.

Parameters:

paths (str or a list of str) – Path to clean. It may contain Windows or conventional python separators.

Returns:

pathlib or list of pathlib – Cleaned path(s).