matlab-proxy 0.10.0__py3-none-any.whl → 0.10.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.
Potentially problematic release.
This version of matlab-proxy might be problematic. Click here for more details.
- matlab_proxy/app.py +3 -0
- matlab_proxy/app_state.py +12 -0
- matlab_proxy/gui/asset-manifest.json +3 -3
- matlab_proxy/gui/index.html +1 -1
- matlab_proxy/gui/static/js/{main.daea642c.js → main.fbc5c728.js} +3 -3
- matlab_proxy/gui/static/js/main.fbc5c728.js.map +1 -0
- matlab_proxy/settings.py +11 -0
- matlab_proxy/util/mwi/environment_variables.py +70 -29
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/METADATA +1 -1
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/RECORD +15 -15
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/WHEEL +1 -1
- matlab_proxy/gui/static/js/main.daea642c.js.map +0 -1
- /matlab_proxy/gui/static/js/{main.daea642c.js.LICENSE.txt → main.fbc5c728.js.LICENSE.txt} +0 -0
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/LICENSE.md +0 -0
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/entry_points.txt +0 -0
- {matlab_proxy-0.10.0.dist-info → matlab_proxy-0.10.1.dist-info}/top_level.txt +0 -0
matlab_proxy/app.py
CHANGED
|
@@ -152,6 +152,9 @@ async def get_env_config(req):
|
|
|
152
152
|
config = state.settings["env_config"]
|
|
153
153
|
config["authEnabled"] = state.settings["mwi_is_token_auth_enabled"]
|
|
154
154
|
|
|
155
|
+
config["useMOS"] = mwi_env.Experimental.should_use_mos_html()
|
|
156
|
+
config["useMRE"] = mwi_env.Experimental.should_use_mre_html()
|
|
157
|
+
|
|
155
158
|
# In a previously authenticated session, if the url is accessed without the token(using session cookie), send the token as well.
|
|
156
159
|
config["authStatus"] = True if await token_auth.authenticate_request(req) else False
|
|
157
160
|
return web.json_response(config)
|
matlab_proxy/app_state.py
CHANGED
|
@@ -679,6 +679,18 @@ class AppState:
|
|
|
679
679
|
# The mwi_logs_dir is where MATLAB will write any subsequent logs
|
|
680
680
|
matlab_env["MATLAB_LOG_DIR"] = str(self.mwi_logs_dir)
|
|
681
681
|
|
|
682
|
+
# Set MW_CONNECTOR_CONTEXT_ROOT for MPA
|
|
683
|
+
if mwi_env.Experimental.is_mpa_enabled():
|
|
684
|
+
matlab_env["MW_CONNECTOR_CONTEXT_ROOT"] = self.settings.get("base_url", "/")
|
|
685
|
+
logger.info(
|
|
686
|
+
f"MW_CONNECTOR_CONTEXT_ROOT is set to: {matlab_env['MW_CONNECTOR_CONTEXT_ROOT']}"
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
# Setup Simulink Online which requires a pre-warm stage
|
|
690
|
+
if mwi_env.Experimental.is_simulink_enabled():
|
|
691
|
+
logger.info("Enabling usage of Simulink Online...")
|
|
692
|
+
matlab_env["PREWARM_SIMULINK"] = "true"
|
|
693
|
+
|
|
682
694
|
# Env setup related to logging
|
|
683
695
|
# Very verbose logging in debug mode
|
|
684
696
|
if logger.isEnabledFor(logging.getLevelName("DEBUG")):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "./static/css/main.aa888962.css",
|
|
4
|
-
"main.js": "./static/js/main.
|
|
4
|
+
"main.js": "./static/js/main.fbc5c728.js",
|
|
5
5
|
"static/media/mathworks-pictograms.svg?20181009": "./static/media/mathworks-pictograms.f6f087b008b5a9435f26.svg",
|
|
6
6
|
"static/media/MATLAB-env-blur.png": "./static/media/MATLAB-env-blur.4fc94edbc82d3184e5cb.png",
|
|
7
7
|
"static/media/mathworks.svg?20181004": "./static/media/mathworks.80a3218e1ba29f0573fb.svg",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"static/media/gripper.svg": "./static/media/gripper.9defbc5e76d0de8bb6e0.svg",
|
|
36
36
|
"static/media/arrow.svg": "./static/media/arrow.0c2968b90bd9a64c8c3f.svg",
|
|
37
37
|
"main.aa888962.css.map": "./static/css/main.aa888962.css.map",
|
|
38
|
-
"main.
|
|
38
|
+
"main.fbc5c728.js.map": "./static/js/main.fbc5c728.js.map"
|
|
39
39
|
},
|
|
40
40
|
"entrypoints": [
|
|
41
41
|
"static/css/main.aa888962.css",
|
|
42
|
-
"static/js/main.
|
|
42
|
+
"static/js/main.fbc5c728.js"
|
|
43
43
|
]
|
|
44
44
|
}
|
matlab_proxy/gui/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MATLAB"/><meta name="internal_mw_identifier" content="MWI_MATLAB_PROXY_IDENTIFIER"/><link rel="manifest" href="./manifest.json"/><title>MATLAB</title><script defer="defer" src="./static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="MATLAB"/><meta name="internal_mw_identifier" content="MWI_MATLAB_PROXY_IDENTIFIER"/><link rel="manifest" href="./manifest.json"/><title>MATLAB</title><script defer="defer" src="./static/js/main.fbc5c728.js"></script><link href="./static/css/main.aa888962.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|