SyntaxFix
Write A Post
Hire A Developer
Questions
You have to put the entire path as a parameter to os.path.split. See The docs. It doesn't work like string split.