Skip to content

Commit

Permalink
Patch to make debugging with pdb better
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWeber42 committed Sep 30, 2017
1 parent fde4d72 commit 2f55236
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nagini_translation/lib/jvmaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ class JVM:
"""

def __init__(self, classpath: str):
jpype.startJVM(jpype.getDefaultJVMPath(),
'-Djava.class.path=' + classpath, '-Xss128m')
if not jpype.isJVMStarted():
jpype.startJVM(jpype.getDefaultJVMPath(),
'-Djava.class.path=' + classpath, '-Xss128m')
self.java = jpype.JPackage('java')
self.scala = jpype.JPackage('scala')
self.viper = jpype.JPackage('viper')
Expand Down

0 comments on commit 2f55236

Please sign in to comment.