Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions matlab_proxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def make_static_route_table(app):
Returns:
Dict: Containing information about the static files and header information.
"""
import importlib_resources
import importlib.resources

from matlab_proxy import gui
from matlab_proxy.gui import static
Expand All @@ -510,9 +510,9 @@ def make_static_route_table(app):
(gui.static.js.__name__, "/static/js"),
(gui.static.media.__name__, "/static/media"),
]:
for entry in importlib_resources.files(mod).iterdir():
for entry in importlib.resources.files(mod).iterdir():
name = entry.name
if not importlib_resources.files(mod).joinpath(name).is_dir():
if not importlib.resources.files(mod).joinpath(name).is_dir():
if name != "__init__.py":
# Special case for manifest.json
if "manifest.json" in name:
Expand Down
4 changes: 2 additions & 2 deletions matlab_proxy/util/mwi/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def __get_configs():
Dict: Contains all the values present in 'matlab_web_desktop_configs' entry_point from all the packages
installed in the current environment.
"""
import importlib_metadata
import importlib.metadata

matlab_proxy_eps = importlib_metadata.entry_points(
matlab_proxy_eps = importlib.metadata.entry_points(
group=matlab_proxy.get_entrypoint_name()
)
configs = {}
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def run(self):
INSTALL_REQUIRES = [
"aiohttp>=3.7.4",
"aiohttp_session[secure]",
"importlib-metadata",
"importlib-resources",
"psutil",
"watchdog",
"requests",
Expand Down