Skip to content

Commit

Permalink
add sys.argv check to plugin.py for workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchute committed Mar 20, 2021
1 parent 8a641ef commit 5e80c59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EnergyPlus/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import sys
if not hasattr(sys, 'argv'):
sys.argv = ['']

from typing import List

from pyenergyplus.api import EnergyPlusAPI
Expand Down

5 comments on commit 5e80c59

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyProgramName (mitchute) - x86_64-MacOS-10.15-clang-11.0.0: OK (3066 of 3067 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyProgramName (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: Tests Failed (2780 of 3107 tests passed, 398 test warnings)

Messages:\n

  • 725 tests had: AUD diffs.
  • 622 tests had: RDD diffs.
  • 327 tests had: Table big diffs.
  • 62 tests had: Table small diffs.
  • 1 test had: EIO diffs.
  • 1 test had: ESO small diffs.
  • 1 test had: MTR small diffs.

Failures:\n

regression Test Summary

  • Passed: 415
  • Failed: 327

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyProgramName (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1620 of 1621 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyProgramName (mitchute) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (726 of 727 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 726
  • Timeout: 1

Build Badge Test Badge Coverage Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyProgramName (mitchute) - Win64-Windows-10-VisualStudio-16: OK (2316 of 2316 tests passed, 0 test warnings)

Build Badge Test Badge

Please sign in to comment.