From 359ba1efd84a0909a52bfaa67ffdea81709f60ab Mon Sep 17 00:00:00 2001 From: Roy Willy Haug <5484176+roywilly@users.noreply.github.com> Date: Tue, 2 May 2023 14:09:57 +0200 Subject: [PATCH] Fix test that fails (#166) --- tests/test_uploader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_uploader.py b/tests/test_uploader.py index 02add7bd..1e485bfb 100644 --- a/tests/test_uploader.py +++ b/tests/test_uploader.py @@ -260,6 +260,10 @@ def test_seismic_openvds_file(token): os.remove(exported_filepath) python_path = os.path.dirname(sys.executable) path_to_SEGYExport = os.path.join(python_path, '..', 'bin', 'SEGYExport') + if sys.platform.startswith("win"): + path_to_SEGYExport = path_to_SEGYExport + ".exe" + if not os.path.isfile(path_to_SEGYExport): + path_to_SEGYExport = os.path.join(python_path, '..', 'shims', 'SEGYExport') cmdstr = ' '.join([path_to_SEGYExport, '--url', url, '--connection', url_conn,