How to open a specific section of a chm file in Python?

How to open .chm help file in a specific section using Python? Actually, I open the file with the following function:

def help(self):
  # Open the help file
  os.startfile( os.getcwd()+"/config/help.chm") 
+3
source share
2 answers

I found a way to do this, but is more related to the hh program on Windows:

My help file was generated using the chmprocessor program, which generates a chm file, and I create an hhk file (containing links). 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 case if there is another easy way. tell me.

Hi

German

0
source

Other sugestion:

subprocess.Popen("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")
+2
source

Source: https://habr.com/ru/post/1767012/


All Articles