This is development documentation. Some features are not available in the stable release. View stable documentation.

spectrochempy.pathclean

pathclean(paths)[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).