mirror of https://github.com/eyhc1/rendercv.git
renderer: remove `output_directory_path` argument from `copy_theme_files_to_output_directory`
This commit is contained in:
parent
37120928bb
commit
6d77686abd
|
@ -828,7 +828,6 @@ def generate_markdown_file(
|
||||||
def copy_theme_files_to_output_directory(
|
def copy_theme_files_to_output_directory(
|
||||||
theme_name: str,
|
theme_name: str,
|
||||||
output_directory_path: pathlib.Path,
|
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`)
|
"""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
|
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.
|
theme_name (str): The name of the theme.
|
||||||
output_directory (pathlib.Path): Path to the output directory.
|
output_directory (pathlib.Path): Path to the output directory.
|
||||||
"""
|
"""
|
||||||
if theme_directory_path is None:
|
|
||||||
if theme_name in dm.available_themes:
|
if theme_name in dm.available_themes:
|
||||||
theme_directory_path = importlib.resources.files(
|
theme_directory_path = importlib.resources.files(
|
||||||
f"rendercv.themes.{theme_name}"
|
f"rendercv.themes.{theme_name}"
|
||||||
|
|
Loading…
Reference in New Issue