5 lines
182 B
Python
5 lines
182 B
Python
|
|
>>> import os
|
||
|
|
>>> os.path.commonpath(['/home/user1/tmp/coverage/test',
|
||
|
|
'/home/user1/tmp/covert/operator', '/home/user1/tmp/coven/members'])
|
||
|
|
'/home/user1/tmp'
|