Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python os remove extension

import os
full_name = 'directory/file.ext'
name_without_ext = os.path.basename(os.path.splitext(full_name)[0])
 
PREVIOUS NEXT
Tagged: #python #os #remove #extension
ADD COMMENT
Topic
Name
4+7 =