restores parameters template file (#4976)

This commit is contained in:
Danglewood
2023-05-08 22:21:26 -07:00
committed by GitHub
parent 84125c88ad
commit eaf27ab522
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -38,7 +38,7 @@ def load_data_files() -> Dict[str, Path]:
Dict[str, Path]
The dictionary of filenames and their paths
"""
default_path = paths.MISCELLANEOUS_DIRECTORY / "portfolio_examples" / "optimization"
default_path = paths.MISCELLANEOUS_DIRECTORY / "portfolio"
custom_exports = (
get_current_user().preferences.USER_PORTFOLIO_DATA_DIRECTORY / "optimization"
)
@@ -46,7 +46,7 @@ def load_data_files() -> Dict[str, Path]:
for directory in [default_path, custom_exports]:
for file_type in ["xlsx", "ini"]:
for filepath in Path(directory).rglob(f"*.{file_type}"):
if filepath.is_file():
if filepath.is_file() and "example" not in filepath.name:
data_files[filepath.name] = filepath
return data_files