Get filename from path without extension Suggest EditsPython>>> print os.path.splitext(os.path.basename("hemanth.txt"))[0] hemanth Updated less than a minute ago