ansys-pyensight-core 0.8.1__py3-none-any.whl → 0.8.3__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.

@@ -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
- for script in ["jquery-3.4.1.min.js", "geotiff.js", "geotiff_nexus.js", "bootstrap.min.js"]:
386
- name = "os.path.join(enve.home(), f'nexus{ceiversion.nexus_suffix}', 'django', "
387
- name += f"'website', 'static', 'website', 'scripts', '{script}')"
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'