tags:

views:

26

answers:

1

Good afternoon

How can I open an a chm help file in a particular section using python? Actually I'am opening the file with the following function:

def help(self):
  # Open the help file
  os.startfile( os.getcwd()+"/config/help.chm") 

Many thanks

German

A: 

I find a way to do it, but is more related to the hh program in Windows:

My help file was generated using the program chmprocessor which generate the chm file and I generate a hhk file (containing the references). Using this file I used the following code

def help(self)

  os.system("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")

I think this is the way, If there are another easy way. please let me know.

Regards

german

gerocampo