From 0b82324482b49ada54d773bdd05ce30b42f6c191 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 15 Jan 2024 12:41:15 +0100
Subject: [PATCH] [py] ruff fixes in
 Tests/Python/test_simulator_mesh_interface.py.

---
 Tests/Python/test_simulator_mesh_interface.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Tests/Python/test_simulator_mesh_interface.py b/Tests/Python/test_simulator_mesh_interface.py
index 2221300c65a..61ca3fa73f7 100644
--- a/Tests/Python/test_simulator_mesh_interface.py
+++ b/Tests/Python/test_simulator_mesh_interface.py
@@ -1,6 +1,6 @@
-import os
 import sys
 import tempfile
+from pathlib import Path
 
 import numpy as np
 import ogs.mesh as mesh  # noqa: F401
@@ -79,9 +79,10 @@ def checkCells(cells, celltypes, points):
 
 
 def test_simulator():
+    current_dir = Path(__file__).parent.abspath()
     arguments = [
         "",
-        f"{os.path.abspath(os.path.dirname(__file__))}/../Data/Parabolic/LiquidFlow/Flux/3D/Hex/cuboid_1x1x1_hex_27_Dirichlet_Dirichlet_Python.prj",
+        f"{current_dir}/../Data/Parabolic/LiquidFlow/Flux/3D/Hex/cuboid_1x1x1_hex_27_Dirichlet_Dirichlet_Python.prj",
         "-o " + tempfile.mkdtemp(),
     ]
 
-- 
GitLab