common ways to execute a gmsh mesh script from python + sudo
Hello, sorry for this simple question but I could not find in the documentation what the common ways to execute a gmsh mesh script from a python spyder window are.
The only way I have found so far is the following:
subprocess.call(['sudo', 'gmsh', 'script.py'])
by the way I am not able to execute gmsh without the sudo command. what could be the reason for that? I am on ubuntu 22.04, spyder 5.3.2, python 3.9.12, gmsh 4.8.4
thank you in advance for your help