dvsim 1.7.0__py3-none-any.whl → 1.7.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dvsim/templates/render.py +5 -2
- {dvsim-1.7.0.dist-info → dvsim-1.7.1.dist-info}/METADATA +1 -1
- {dvsim-1.7.0.dist-info → dvsim-1.7.1.dist-info}/RECORD +6 -6
- {dvsim-1.7.0.dist-info → dvsim-1.7.1.dist-info}/WHEEL +0 -0
- {dvsim-1.7.0.dist-info → dvsim-1.7.1.dist-info}/entry_points.txt +0 -0
- {dvsim-1.7.0.dist-info → dvsim-1.7.1.dist-info}/licenses/LICENSE +0 -0
dvsim/templates/render.py
CHANGED
|
@@ -10,6 +10,7 @@ DVSim. Templates can be referenced relative to this directory.
|
|
|
10
10
|
|
|
11
11
|
from collections.abc import Mapping
|
|
12
12
|
from importlib import resources
|
|
13
|
+
from pathlib import Path
|
|
13
14
|
|
|
14
15
|
from jinja2 import Environment, PackageLoader, select_autoescape
|
|
15
16
|
|
|
@@ -28,9 +29,11 @@ def render_static(path: str) -> str:
|
|
|
28
29
|
string containing the static file content
|
|
29
30
|
|
|
30
31
|
"""
|
|
32
|
+
full_path = Path("dvsim/templates/static") / path
|
|
33
|
+
|
|
31
34
|
return resources.read_text(
|
|
32
|
-
"
|
|
33
|
-
|
|
35
|
+
".".join(full_path.parts[:-1]), # Module path
|
|
36
|
+
full_path.name,
|
|
34
37
|
)
|
|
35
38
|
|
|
36
39
|
|
|
@@ -49,7 +49,7 @@ dvsim/report/__init__.py,sha256=m58UrZ_U3jKI0QlB3r6cGdRb-QfgzN7t0udJpYa2DMs,196
|
|
|
49
49
|
dvsim/report/data.py,sha256=MC9Apc3H7Cd3k0ykaJ9b3EsdZc-nfTnUaIsSPoHkesM,5829
|
|
50
50
|
dvsim/report/generate.py,sha256=2zDJkMmpb71tlMxhopMq2vV_XDhOw2r5krSI0nZ4btQ,2634
|
|
51
51
|
dvsim/templates/__init__.py,sha256=vZhkgLLCkdOPjOK_wGaa2AqDLs2fZLuc3_TJK62ttA8,195
|
|
52
|
-
dvsim/templates/render.py,sha256=
|
|
52
|
+
dvsim/templates/render.py,sha256=uAc798QYvZJBugTl53XFz1nft8ZK_YFsyIK0oQWWErQ,1582
|
|
53
53
|
dvsim/templates/reports/__init__.py,sha256=eu0aBRe908Or6yAc4K61fuxUx-48lhjqBpsslUtn5Z8,192
|
|
54
54
|
dvsim/templates/reports/block_report.html,sha256=3gP-v3uS2jpmgBjqS9UvSiQu6PZ4khAf9relJJZL1qo,9768
|
|
55
55
|
dvsim/templates/reports/redirect.html,sha256=nGUoYTSrNiVXWXpluFMoHjdP5QldtEXeZMGd6Y2rPzc,593
|
|
@@ -77,8 +77,8 @@ dvsim/utils/status_printer.py,sha256=azwNWS83rI-h7OfOYPIj-Sy46aIz35L3y_Yiwkx60ZE
|
|
|
77
77
|
dvsim/utils/subprocess.py,sha256=8jje9hmwZ_JH0zQ8JNwhsNldntgI3_SF6L5SUHQ9luo,1829
|
|
78
78
|
dvsim/utils/timer.py,sha256=jD4R3wB_rBxaefiMr-k34aH325xdcoqtHHRCtSczSC8,1604
|
|
79
79
|
dvsim/utils/wildcards.py,sha256=5WkByZLHyPlo5lD4rIXPuDjjrhrWqNpcTYxmQ5k294o,11701
|
|
80
|
-
dvsim-1.7.
|
|
81
|
-
dvsim-1.7.
|
|
82
|
-
dvsim-1.7.
|
|
83
|
-
dvsim-1.7.
|
|
84
|
-
dvsim-1.7.
|
|
80
|
+
dvsim-1.7.1.dist-info/METADATA,sha256=d_FTuXXFCRV0937tGYDBw-TryFith5clFPfeYroX-9k,5882
|
|
81
|
+
dvsim-1.7.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
82
|
+
dvsim-1.7.1.dist-info/entry_points.txt,sha256=6A-YOJ6XYbedSfSJ5dP56lRkoHYrLanJt0AYNH9w3r0,75
|
|
83
|
+
dvsim-1.7.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
84
|
+
dvsim-1.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|