Skip to content

Commit 7343a9c

Browse files
committed
Replace importlib.resources with plain string for template dir
The standard_template_library is now a git subtree at the same path, so the path can be resolved directly relative to file_utils.py without importlib.
1 parent f95206a commit 7343a9c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plain2code.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import importlib.resources
21
import logging
32
import logging.config
43
import os
@@ -52,7 +51,7 @@
5251
from tui.plain2code_tui import Plain2CodeTUI
5352
from tui.plain_module_render_choice_tui import PlainModuleRenderChoiceTUI
5453

55-
DEFAULT_TEMPLATE_DIRS = importlib.resources.files("standard_template_library")
54+
DEFAULT_TEMPLATE_DIRS = "standard_template_library"
5655
RENDER_THREAD_SHUTDOWN_TIMEOUT = 0.7
5756

5857

0 commit comments

Comments
 (0)