Re: Apple help
Roger Binns <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
On Jan 29, 2005, at 2:38, Adit Panchal wrote:
> it's probably also the reason that null is showing up, since it
> doesn't know what book to search (kind of dumb if you ask me - the idx
> file is right there).
And the AppleTitle meta tag is present. Why put that in if it has no
effect?
> So it seems that unfortunately, to tie in standalone help without a
> bundle doesn't seem like a possibility.
I believe that the help can be done as a standalone bundle that you can
register with AHRegisterHelpBook. The problem is that the
documentation doesn't say exactly how it should be laid out. (Or more
accurately it says do A, then B, then C and everything should be fine
as you do G and H. The crucial pieces of information are in the
middle.)
My meta-goal in this is to be able to have a script that can turn any
wxWidgets format help into Apple conformant help, rather than some ugly
hack that temporarily solves it only for BitPim.
> Whenever I use makedist.py or write my own setup script with py2app, I
> get the following error.
It definitely works (I just tried again). You will get an error
somewhere due to py2app not working correctly with optimize=2 in the
options (it fails to find 3 files). I have a hack which I had thought
I posted but can't find, so here it is again.
Edit /Library/Python/2.3/py2app/py2app/util.py around line 205 and add
the bits between the hash signs. I kept some context on either side:
if target_dir:
cfile = os.path.join(target_dir, dfile)
###
### Hack to work around bug in py2app with optimize
###
if not os.path.exists(mod.filename):
import py2app
bootstrapname=os.path.join(os.path.dirname(py2app.__file__),
"bootstrap", mod.filename)
if os.path.exists(bootstrapname):
mod.filename=bootstrapname
###
### End hack
###
if force or newer(mod.filename, cfile):
if verbose:
> TypeError: compile() expected string without null bytes
>
You may need to use ktrace or python -v to figure out where that is
happening. In my experience you can end up with nulls in a file if
there have been disk issues or a screwup with CVS. Try on a clean
checkout.
Roger
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl