Skip to content

Commit 625f973

Browse files
committed
Use Unicode string to represent icon_path.
fixes #118
1 parent f75e820 commit 625f973

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/jupyter_matlab_proxy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def setup_matlab():
106106

107107

108108
def _get_jsp_config(logger):
109-
icon_path = Path(__file__).parent / "icon_open_matlab.svg"
109+
icon_path = str(Path(__file__).parent / "icon_open_matlab.svg")
110110
logger.debug("Icon_path: %s", icon_path)
111111
jsp_config = {}
112112

tests/unit/test_jupyter_server_proxy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2024 The MathWorks, Inc.
1+
# Copyright 2020-2025 The MathWorks, Inc.
22

33
import inspect
44
import os
@@ -88,7 +88,7 @@ def test_setup_matlab(set_mwi_use_fallback_kernel):
8888
"""
8989
# Setup
9090
package_path = Path(inspect.getfile(jupyter_matlab_proxy)).parent
91-
icon_path = package_path / "icon_open_matlab.svg"
91+
icon_path = str(package_path / "icon_open_matlab.svg")
9292

9393
expected_matlab_setup = {
9494
"command": [
@@ -128,7 +128,7 @@ def test_setup_matlab_with_proxy_manager(monkeypatch):
128128
monkeypatch.setattr("jupyter_matlab_proxy._MPM_AUTH_TOKEN", "secret")
129129
monkeypatch.setattr("jupyter_matlab_proxy._JUPYTER_SERVER_PID", "123")
130130
package_path = Path(inspect.getfile(jupyter_matlab_proxy)).parent
131-
icon_path = package_path / "icon_open_matlab.svg"
131+
icon_path = str(package_path / "icon_open_matlab.svg")
132132

133133
expected_matlab_setup = {
134134
"command": [matlab_proxy_manager.get_executable_name()],
@@ -161,7 +161,7 @@ def test_setup_matlab_with_token_auth_disabled(
161161
"""
162162
# Setup
163163
package_path = Path(inspect.getfile(jupyter_matlab_proxy)).parent
164-
icon_path = package_path / "icon_open_matlab.svg"
164+
icon_path = str(package_path / "icon_open_matlab.svg")
165165
monkeypatch.setattr(jupyter_matlab_proxy, "_mwi_auth_token", None)
166166

167167
expected_matlab_setup = {

0 commit comments

Comments
 (0)