15 |
self.webhelproot = config.WEBHELPROOT |
self.webhelproot = config.WEBHELPROOT |
16 |
|
|
17 |
if helproot==None: |
if helproot==None: |
18 |
self.helproot = os.path.expanduser(config.HELPROOT) |
if platform.system()=="Windows": |
19 |
|
import _winreg |
20 |
|
x=_winreg.ConnectRegistry(None,_winreg.HKEY_LOCAL_MACHINE) |
21 |
|
y= _winreg.OpenKey(x,r"SOFTWARE\ASCEND") |
22 |
|
_regpath,t = _winreg.QueryValueEx(y,"Install_Dir") |
23 |
|
_winreg.CloseKey(y) |
24 |
|
_winreg.CloseKey(x) |
25 |
|
self.helproot = os.path.join(_regpath,"book.pdf") |
26 |
|
else: |
27 |
|
self.helproot = os.path.expanduser(config.HELPROOT) |
28 |
else: |
else: |
29 |
self.helproot = helproot |
self.helproot = helproot |
30 |
|
|