image

the sleepy snake

index :: path :: remove_ext

remove_ext(path, components=1)

Removes the file extension part of path and returns the resulting path.
If the pat hhas no extension, it is returned unchanged

For a detailed description of the components keyword see get_ext()