[Gmsh] Running onelab python script on gmsh command line

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Mar 23 22:21:02 CET 2015


> On 22 Mar 2015, at 17:29, lukshuntim at gmail.com wrote:
> 
> Hi,
> 
> I started to play a bit with onelab. When trying to run the pend.py script from
> 
> http://onelab.info/wiki/Python
> 
> on the command line using "gmsh pend.py", it throws this error
> 
> Traceback (most recent call last):
>  File "pend.py", line 93, in <module>
>    exportMshOpt()
>  File "pend.py", line 20, in exportMshOpt
>    optFile = open(c.getPath("pend.msh.opt"),'w')
> IOError: [Errno 13] Permission denied: '//pend.msh.opt'
> 
> while running `gmsh ./pend.py` works.
> 
> Is this the intended/expected behaviour or a bug? This is on ubuntu trusty.
> 

There was an issue in the "path()" function in Gmsh 2.9.0. Does it work with Gmsh 2.9.1 or the latest nightly builds?



> Regards,
> ST
> -- 
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine