ansys-pyensight-core 0.8.1__py3-none-any.whl → 0.8.4__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 ansys-pyensight-core might be problematic. Click here for more details.
- ansys/pyensight/core/renderable.py +14 -3
- ansys/pyensight/core/utils/dsg_server.py +695 -0
- ansys/pyensight/core/utils/omniverse.py +9 -9
- ansys/pyensight/core/utils/omniverse_dsg_server.py +163 -692
- ansys/pyensight/core/utils/parts.py +5 -5
- ansys/pyensight/core/utils/readers.py +1 -1
- ansys/pyensight/core/utils/variables.py +36 -1
- {ansys_pyensight_core-0.8.1.dist-info → ansys_pyensight_core-0.8.4.dist-info}/METADATA +2 -2
- {ansys_pyensight_core-0.8.1.dist-info → ansys_pyensight_core-0.8.4.dist-info}/RECORD +11 -10
- {ansys_pyensight_core-0.8.1.dist-info → ansys_pyensight_core-0.8.4.dist-info}/LICENSE +0 -0
- {ansys_pyensight_core-0.8.1.dist-info → ansys_pyensight_core-0.8.4.dist-info}/WHEEL +0 -0
|
@@ -382,10 +382,21 @@ class RenderableDeepPixel(Renderable):
|
|
|
382
382
|
html = fp.read()
|
|
383
383
|
# copy some files from Nexus
|
|
384
384
|
cmd = "import shutil, enve, ceiversion, os.path\n"
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
base_name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
|
|
386
|
+
base_name += "'website', 'static', 'website', 'scripts', "
|
|
387
|
+
for script in ["geotiff.js", "geotiff_nexus.js", "bootstrap.min.js"]:
|
|
388
|
+
name = base_name + f"'{script}')"
|
|
388
389
|
cmd += f'shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'
|
|
390
|
+
if int(self._session._cei_suffix) < 251:
|
|
391
|
+
jquery = "jquery-3.4.1.min.js"
|
|
392
|
+
else:
|
|
393
|
+
jquery = "jquery.min.js"
|
|
394
|
+
cmd = "import shutil, enve, ceiversion, os.path\n"
|
|
395
|
+
name = base_name + f"'{jquery}')"
|
|
396
|
+
cmd += "try:"
|
|
397
|
+
cmd += f' shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'
|
|
398
|
+
cmd += "except Exception:"
|
|
399
|
+
cmd += " pass"
|
|
389
400
|
name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
|
|
390
401
|
name += "'website', 'static', 'website', 'content', 'bootstrap.min.css')"
|
|
391
402
|
cmd += f'shutil.copy({name}, r"""{self._session.launcher.session_directory}""")\n'
|