We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275349a commit 8072c5eCopy full SHA for 8072c5e
dmoj/executors/java_executor.py
@@ -1,4 +1,5 @@
1
import errno
2
+import glob
3
import os
4
import re
5
import subprocess
@@ -84,7 +85,8 @@ def get_fs(self):
84
85
+ [ExactFile(self._agent_file)]
86
+ [ExactDir(str(parent)) for parent in PurePath(self._agent_file).parents]
87
)
- vm_config = Path(self.get_vm()).parent.parent / 'lib' / 'jvm.cfg'
88
+ vm_parent = Path(os.path.realpath(self.get_vm())).parent.parent
89
+ vm_config = Path(glob.glob(f'{vm_parent}/**/jvm.cfg', recursive=True)[0])
90
if vm_config.is_symlink():
91
fs += [RecursiveDir(os.path.dirname(os.path.realpath(vm_config)))]
92
return fs
0 commit comments