Skip to content

Commit 4730a53

Browse files
committed
fix path calc
1 parent b3b6253 commit 4730a53

File tree

6 files changed

+89
-85
lines changed

6 files changed

+89
-85
lines changed

coverage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ tests/test_typs_in_frame.py . [100%]
3434
Name Stmts Miss Cover
3535
---------------------------------------------
3636
wvpy/__init__.py 3 0 100%
37-
wvpy/jtools.py 135 27 80%
37+
wvpy/jtools.py 136 27 80%
3838
wvpy/pysheet.py 74 74 0%
3939
wvpy/render_workbook.py 46 46 0%
4040
wvpy/util.py 321 7 98%
4141
---------------------------------------------
42-
TOTAL 579 154 73%
42+
TOTAL 580 154 73%
4343

44-
======================= 20 passed, 2 warnings in 17.47s ========================
44+
======================= 20 passed, 2 warnings in 16.89s ========================

pkg/build/lib/wvpy/jtools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ def render_as_html(
203203
if init_code is not None:
204204
assert isinstance(init_code, str)
205205
nb = prepend_code_cell_to_notebook(nb, code_text=init_code)
206-
html_name = notebook_file_name.removesuffix(suffix)
206+
html_name = os.path.basename(notebook_file_name)
207+
html_name = html_name.removesuffix(suffix)
207208
exec_note = ""
208209
if output_suffix is not None:
209210
assert isinstance(output_suffix, str)
17 Bytes
Binary file not shown.

pkg/dist/wvpy-0.3.3.tar.gz

35.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)