So treten Sie Basename und Verzeichnis in Python OS an
os.path.join(dir_name, base_filename + "." + filename_suffix)
Talented Thrush
os.path.join(dir_name, base_filename + "." + filename_suffix)