Hi guys,

I'm trying to freeze an application that uses sphinx. One of the
modules it imports has a __init__.py file that attempts to load a data
file using the the module's __file__ attribute, like so:

in sphinx/pycode/__init__.py:

_grammarfile = path.join(path.dirname(__file__), 'Grammar.txt')

So, it would appear that even using the hooking mechanism, this file
won't be correctly found. I've tried using a hook-sphinx.py and adding
"Grammar.txt" to datas = [], but that just ends up placing the file in
a place the module won't look.

My thought was that I'd have to test sys.frozen and write some kind of
import hook for sphinx.pycode to change __file__, but I'm not even
quite sure that would work.

Any ideas?

-- 
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.

Reply via email to