Skip to content

Commit e3585e5

Browse files
author
Tjaž Eržen
authored
Merge pull request #12 from Codeplain-ai/feat/remove-unused-files
Remove unused files
2 parents b3dfc74 + 5f95f52 commit e3585e5

5 files changed

Lines changed: 10 additions & 63 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
unittests-script: ../../test_scripts/run_unittests_python.sh
22
conformance-tests-script: ../../test_scripts/run_conformance_tests_python.sh
33
v: true # verbose flag, defaults to false if not set
4-
debug: true # debug flag, defaults to false if not set
5-
api: http://127.0.0.1:5000
4+
debug: true # debug flag, defaults to false if not set

file_utils.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from liquid2.exceptions import UndefinedError
77

88
import plain_spec
9-
from system_config import system_config
109

1110
BINARY_FILE_EXTENSIONS = [".pyc"]
1211

@@ -213,7 +212,15 @@ def load_linked_resources(template_dirs: list[str], resources_list):
213212
resource_found = True
214213
if not resource_found:
215214
raise FileNotFoundError(
216-
system_config.get_error_message("resource_not_found", resource_name=resource["target"])
215+
f"""
216+
Resource file {resource['target']} not found. Resource files are searched in the following order (highest to lowest precedence):
217+
218+
1. The directory containing your .plain file
219+
2. The directory specified by --template-dir (if provided)
220+
3. The built-in 'standard_template_library' directory
221+
222+
Please ensure that the resource exists in one of these locations, or specify the correct --template-dir if using custom templates.
223+
"""
217224
)
218225

219226
return linked_resources

system_config.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ system_requirements:
1616
- On Windows: Use Windows Subsystem for Linux (WSL), Cygwin, or Git Bash
1717
1818
error_messages:
19-
resource_not_found:
20-
message: |
21-
The resource file '{resource_name}' could not be found. Resource files are searched in the following order (highest to lowest precedence):
22-
23-
1. The directory containing your .plain file
24-
2. The directory specified by --template-dir (if provided)
25-
3. The built-in 'standard_template_library' directory
26-
27-
Please ensure that the resource exists in one of these locations, or specify the correct --template-dir if using custom templates.
2819
template_not_found:
2920
message: |
3021
The required template could not be found. Templates are searched in the following order (highest to lowest precedence):

system_requirements.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

system_requirements.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)