/[ascend]/trunk/pygtk/ascend.in
ViewVC logotype

Diff of /trunk/pygtk/ascend.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2024 by jpye, Tue Apr 28 09:30:57 2009 UTC revision 2025 by jpye, Thu Apr 30 02:15:05 2009 UTC
# Line 22  if platform.system()=="Windows": Line 22  if platform.system()=="Windows":
22      k = wreg.OpenKey(wreg.HKEY_LOCAL_MACHINE, "SOFTWARE\ASCEND")      k = wreg.OpenKey(wreg.HKEY_LOCAL_MACHINE, "SOFTWARE\ASCEND")
23      print k      print k
24    
25        # on Windows, we should be able to *assume* relative paths...
26    
27      # for some reason, QueryValue doesn't work on Py 2.4, need to use QueryValueEx.      # for some reason, QueryValue doesn't work on Py 2.4, need to use QueryValueEx.
28      INSTALL_SOLVERS,t = wreg.QueryValueEx(k,"INSTALL_SOLVERS")      INSTALL_SOLVERS,t = wreg.QueryValueEx(k,"INSTALL_SOLVERS")
29      INSTALL_MODELS,t = wreg.QueryValueEx(k,"INSTALL_MODELS")      INSTALL_MODELS,t = wreg.QueryValueEx(k,"INSTALL_MODELS")
# Line 38  if platform.system()=="Windows": Line 40  if platform.system()=="Windows":
40      SEP=";"      SEP=";"
41      LDPATHVAR = 'PATH'      LDPATHVAR = 'PATH'
42  else:  else:
43    
44        # FIXME for possible case of relative paths...
45    
46      INSTALL_LIB="@INSTALL_LIB@"      INSTALL_LIB="@INSTALL_LIB@"
47      INSTALL_ASCDATA="@INSTALL_ASCDATA@"      INSTALL_ASCDATA="@INSTALL_ASCDATA@"
48      INSTALL_MODELS = os.path.abspath(INSTALL_ASCDATA+"/models")      INSTALL_MODELS = os.path.abspath(INSTALL_ASCDATA+"/models")

Legend:
Removed from v.2024  
changed lines
  Added in v.2025

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22