X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Futilities.py;h=c60476a3813c311a19b3c737cb25a51c940bc486;hp=00804e3947710f1dea1e43cb236b01bcc5f9c1bd;hb=e609947e7cc6ae0696dd5b8f82b80ac894e80565;hpb=a0dc64b95d92c314e80d0f85319290326f90818d diff --git a/aces_1.0.0/python/aces_ocio/utilities.py b/aces_1.0.0/python/aces_ocio/utilities.py index 00804e3..c60476a 100644 --- a/aces_1.0.0/python/aces_ocio/utilities.py +++ b/aces_1.0.0/python/aces_ocio/utilities.py @@ -20,11 +20,9 @@ __status__ = 'Production' __all__ = ['ColorSpace', 'mat44_from_mat33', 'filter_words', - 'files_walker'] + 'files_walker', + 'sanitize_path'] -# -# Utility classes and functions -# class ColorSpace(object): """ @@ -152,3 +150,21 @@ def files_walker(directory, filters_in=None, filters_out=None, flags=0): continue yield path + + +def sanitize_path(path): + """ + Object description. + + Parameters + ---------- + parameter : type + Parameter description. + + Returns + ------- + type + Return value description. + """ + + return path.replace(' ', '_').replace(')', '_').replace('(', '_') \ No newline at end of file