get_basename

raccoon.pyutils.get_basename(s)

Remove path and extension of string s to get the “basename”.

` >>> os.path.basename('path/to/myfile.txt') 'myfile.txt' >>> os.path.splitext('path/to/myfile.txt') ['path/to/myfile', '.txt'] >>> get_basename('path/to/myfile.txt') 'myfile' `