Changeset 5133
- Timestamp:
- Mar 7, 2008, 11:40:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/compile.py
r4813 r5133 132 132 libext = 'dll' 133 133 134 v = version.replace('.','')135 dllfilename = 'python%s.dll' %(v)136 #libs = os.path.join(sys.exec_prefix,dllfilename)137 134 libs, is_found = set_python_dll_path() 138 135 … … 356 353 357 354 def 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. 359 357 360 358 If the file can't be found, return None. … … 370 368 is_found = True 371 369 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) 374 373 if access(libs,F_OK) == 0 : 375 374 # could not find the dll
Note: See TracChangeset
for help on using the changeset viewer.