File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from pythonlsf import lsf
22import ctypes
3+ import platform
34
45def printHostInfo ():
56 if lsf .lsb_init ("test" ) > 0 :
@@ -15,8 +16,11 @@ def printHostInfo():
1516
1617 for i in range (nhosts ) :
1718 host = all_lsload_data [i ]
18- hostname = ctypes .cast ( host .hostName , ctypes .c_char_p )
19- print ('No.{} host name : {}' .format (i , hostname .value ))
19+ if platform .system () == 'Windows' :
20+ print ('No.{} host name : {}' .format (i , host .hostName ))
21+ else :
22+ hostname = ctypes .cast ( host .hostName , ctypes .c_char_p )
23+ print ('No.{} host name : {}' .format (i , hostname .value ))
2024
2125 return 0
2226
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ msbuild lsf.sln -property:Configuration=Release
33cp X64\Release\_lsf.pyd ..\pythonlsf\
44cp X64\Release\_lsf.lib ..\pythonlsf\
55cp X64\Release\_lsf.exp ..\pythonlsf\
6+ cp %LSF_LIB% \liblsbstream.dll ..\pythonlsf\
67
78
You can’t perform that action at this time.
0 commit comments