I\'m using the os.path.split() function on a path in my program to get the filename and pathname of a file then passing them into another method, but my current solution see
Yes, Python has argument list unpacking. Try this:
some_class(*os.path.split(somefile))