fix the code error

path.split('/').join(os.sep): list hat no attr:join