On May 20, 6:18 pm, Martin Zibricky <[email protected]> wrote: > > I think you could try the following: > > 1) use standard hook mechanism to include 'Grammar.txt' with the > executable > 2) use runtime hooks and override the _grammarfile when running your > app: > - inside your runtime hook for sphinx you could have code similar to > > import sphinx > sphinx.pycode._grammarfile = join(dirname(sys.executable),'Grammar.txt') > > - for example look at files > ./support/rthooks/pyi_rth_django.py > ./rthooks.dat
I gave it a shot but ended up with the same problem. I think the issue is probably that when sphinx.pycode gets imported, it tries to set _grammarfile in the usual way, and of course it can't find it. Seems to me like there has to be some sort of python import hook here to catch sphinx.pycode and set _grammarfile appropriately, but I'm not quite sure how to do it. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
