Skip to content

Commit

Permalink
Update core.jar location for python files
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Nov 11, 2023
1 parent 508c884 commit 1fe20d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/scripts/importer/cbioportalImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,9 @@ def locate_jar():
# get the directory name of the currently running script,
# resolving any symlinks
script_dir = Path(__file__).resolve().parent
# go up from cbioportal/core/src/main/scripts/importer/ to cbioportal/
src_root = script_dir.parent.parent.parent.parent.parent
jars = list((src_root / 'scripts' / 'target').glob('scripts-*.jar'))
# go up from core/scripts/importer/ to core/
src_root = script_dir.parent.parent
jars = list((src_root ).glob('core-*.jar'))
if len(jars) != 1:
raise FileNotFoundError(
'Expected to find 1 scripts-*.jar, but found ' + str(len(jars)))
Expand Down

0 comments on commit 1fe20d9

Please sign in to comment.