Use another approach to get the full path for the test case.
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-import os
+import os, inspect
from salome.shaper import model
import salome
salome.salome_init(1)
-data_dir = os.path.join(os.path.dirname(sys.argv[0]), "data")
+data_dir = os.path.join(os.path.dirname(inspect.getfile(lambda: None)), "data")
model.begin()
partSet = model.moduleDocument()
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-import os
+import os, inspect
from salome.shaper import model
import salome
salome.salome_init(1)
-data_dir = os.path.join(os.path.dirname(sys.argv[0]), "data")
+data_dir = os.path.join(os.path.dirname(inspect.getfile(lambda: None)), "data")
from tempfile import TemporaryDirectory
tmp_dir = TemporaryDirectory()