import os, inspect
from salome.shaper import model
+from PyQt5.Qt import QApplication
+
import salome
+salome.salome_init_without_session()
salome.salome_init(1)
+if QApplication.instance() is None:
+ app = QApplication([])
data_dir = os.path.join(os.path.dirname(inspect.getfile(lambda: None)), "data")
import os, inspect
from salome.shaper import model
+from PyQt5.Qt import QApplication
+
import salome
+salome.salome_init_without_session()
salome.salome_init(1)
+if QApplication.instance() is None:
+ app = QApplication([])
data_dir = os.path.join(os.path.dirname(inspect.getfile(lambda: None)), "data")