How to get the filename without the extension from a path in Python?
For instance, if I had "/path/to/some/file.txt", I would want "
"/path/to/some/file.txt"
"
import os path = "a/b/c/abc.txt" print os.path.splitext(os.path.basename(path))[0]