ansys / pyensight

Python API for EnSight
http://ensight.docs.pyansys.com
MIT License
6 stars 2 forks source link

add temporary backdoor to allow ADR upgrade of jquery library #377

Closed mariostieriansys closed 3 months ago

mariostieriansys commented 3 months ago

Philip is working on an upgrade of the jquery libraries. As part of this upgrade, he is conveniently dropping the jquery version from the script. This is causing a failure in the PyEnSight tests since one of the tests tries to launch the deep pixel renderable, which triggers a copy of the old jquery libs in the websocketserved directory of the running pyensight session.

This PR adds a backdoor where both the versioned and unversioned scripts are tried.

While this is not ideal, it will work so that Philip can let his PR in. Once merged, a second PR on PyEnSight could be created where instead of trying both the libraries, we can first check the backend EnSight version, and if it is at least 251, the jquery script to be copied will be the unversioned one, the versioned one otherwise