Re: File->Call Script works only first time
Dave Crossland <[email protected]> Sat, 23 May 2015 20:55:59 +0300
| Newsgroups | gmane.comp.fonts.fontforge.devel |
|---|---|
| Message-ID | <CAEozd0z7ZeU_uzk55A4S1xzM3AKXU6difH2WZgdQ=V7SWqv1Yw@mail.gmail.com> |
Hi Thanks! Please could you submit as a pull request via github? :) On 23 May 2015 at 19:00, Michal Nowakowski <[email protected]> wrote: > Hi, > > my scripts from Call Script menu only work first time I use any. > Subsequent attempts end up with message: > > File "script.py", line 2, in <module> > import fontforge > SystemError: _PyImport_FixupExtension: module fontforge not loaded > > I need to restart FontForge to avoid it. > > Look like it stores references from Py_InitModule3() for reuse. > But they are "borrowed references", and in my setup (Ubuntu 14.04, > Python 2.7.6) python forgets them after Py_Finalize(). > > Patch attached. It helps me, but needs to be checked first. > > -- > Regards, > MichaĆ Nowakowski > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > fontforge-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fontforge-devel > http://fontforge.10959.n7.nabble.com/Developer-f3.html > > -- Cheers Dave ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ fontforge-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fontforge-devel http://fontforge.10959.n7.nabble.com/Developer-f3.html