Changeset 5133


Ignore:
Timestamp:
Mar 7, 2008, 11:40:27 AM (16 years ago)
Author:
jack
Message:

Removed some dead code. Fixed the search for python dll on windows platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/compile.py

    r4813 r5133  
    132132    libext = 'dll'
    133133
    134     v = version.replace('.','')
    135     dllfilename = 'python%s.dll' %(v)
    136     #libs = os.path.join(sys.exec_prefix,dllfilename)
    137134    libs, is_found = set_python_dll_path()
    138135     
     
    356353
    357354def set_python_dll_path():
    358   """ Find which of the two usual hiding places the python dll is located.
     355  """ On windows, find which of the two usual hiding places the python
     356  dll is located.
    359357
    360358  If the file can't be found, return None.
     
    370368  is_found = True   
    371369  if access(libs,F_OK) == 0 :
    372     # Hacky - fix if you want
    373     libs = os.path.join('c:'+os.sep+'WINNT'+os.sep+'system32',dllfilename)
     370    # Sometimes python dll is hidden in %WINDIR%/system32
     371    libs = os.path.join(os.environ.get('WINDIR', 'C:\WINNT'), 'system32',
     372                        dllfilename)
    374373    if access(libs,F_OK) == 0 :
    375374      # could not find the dll
Note: See TracChangeset for help on using the changeset viewer.