[Pythonmac-SIG] Can't register Apple Help book with Carbon.AH module

Kevin Walzer sw at wordtech-software.com
Tue May 31 05:58:32 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to format some help docs into Apple Help format for an
application I'm working on, but I can't get the help book registered.
Here is my code:

from Carbon import AH
import os
path = ??
AH.AHRegisterHelpBook(path)

The difficulty I'm having is defining the path to the help documents in
the application bundle. I've tried hard-coding the path as
/path/to/Contents/Resources/Help Book/index.html, but that yields "file
not found." I've looked at the source docs for PythonIDE, but they're a
bit cryptic. I don't quite understand how the Carbon module defines this
stuff (FSSpec, etc). (I'm working with wxPython, so I need to define
this stuff
through Carbon.) Is there a way to do this with the os.path module? If
so I haven't quite grokked how.

Any help is appreciated.

- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.kevin-walzer.com
mailto:sw at wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCm+DoJmdQs+6YVcoRAtM9AJ4zScG7D9CKS4Db2kBSLcc0zXX+TgCggcON
rTCeKCthaQAPBCyaC5AblGU=
=+1S2
-----END PGP SIGNATURE-----


More information about the Pythonmac-SIG mailing list