renderer: remove `output_directory_path` argument from `copy_theme_files_to_output_directory`

This commit is contained in:
Sina Atalay 2024-04-28 22:20:17 +03:00
parent 37120928bb
commit 6d77686abd
1 changed files with 13 additions and 15 deletions

View File

@ -828,7 +828,6 @@ def generate_markdown_file(
def copy_theme_files_to_output_directory(
theme_name: str,
output_directory_path: pathlib.Path,
theme_directory_path: Optional[pathlib.Path] = None,
):
"""Copy the auxiliary files (all the files that don't end with `.j2.tex` and `.py`)
of the theme to the output directory. For example, the "classic" theme has custom
@ -839,7 +838,6 @@ def copy_theme_files_to_output_directory(
theme_name (str): The name of the theme.
output_directory (pathlib.Path): Path to the output directory.
"""
if theme_directory_path is None:
if theme_name in dm.available_themes:
theme_directory_path = importlib.resources.files(
f"rendercv.themes.{theme_name}"