Skip to content

Commit

Permalink
OpenVDS SEGYImport have another path on komodo (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
roywilly authored Mar 22, 2023
1 parent 93cc21d commit f64b2e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fmu/sumo/uploader/_fileondisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def _get_segyimport_cmdstr(blob_url, object_id, file_path, sample_unit):

pythonPath = os.path.dirname(sys.executable)
path_to_SEGYImport = os.path.join(pythonPath, '..', 'bin', 'SEGYImport')
if not os.path.isfile(path_to_SEGYImport):
path_to_SEGYImport = os.path.join(python_path, '..', 'shims', 'SEGYImport')


cmdstr = ' '.join([path_to_SEGYImport,
'--compression-method', 'RLE',
Expand Down
3 changes: 3 additions & 0 deletions tests/test_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def test_openvds_available(token):
python_path = os.path.dirname(sys.executable)
logger.info(python_path)
path_to_SEGYImport = os.path.join(python_path, '..', 'bin', 'SEGYImport')
if not os.path.isfile(path_to_SEGYImport):
path_to_SEGYImport = os.path.join(python_path, '..', 'shims', 'SEGYImport')

logger.info(path_to_SEGYImport)
check_SEGYImport_version = subprocess.run([path_to_SEGYImport, '--version'],
capture_output=True, text=True)
Expand Down

0 comments on commit f64b2e4

Please sign in to comment.