opencolorio_config_aces.utilities.paths_common_ancestor#

opencolorio_config_aces.utilities.paths_common_ancestor(*args)[source]#

Return the common ancestor path from given paths.

Parameters:

*args (list, optional) – Paths to retrieve common ancestor from.

Returns:

Common path ancestor.

Return type:

unicode

Examples

>>> paths_common_ancestor(  
...     '/Users/JohnDoe/Documents', '/Users/JohnDoe/Documents/Test.txt')
'/Users/JohnDoe/Documents'