Changeset 3248
- Timestamp:
- Aug 5, 2010 7:24:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/pjsua/run.py
r3142 r3248 61 61 if G_EXE == "": 62 62 if sys.platform.find("win32")!=-1: 63 e = "../../pjsip-apps/bin/pjsua_vc6d.exe" 64 if os.access(e, os.F_OK): 65 st1 = os.stat(e) 66 else: 67 st1 = None 68 if st1 != None: 69 G_EXE = e 70 e = "../../pjsip-apps/bin/pjsua_vc6.exe" 71 if os.access(e, os.F_OK): 72 st2 = os.stat(e) 73 else: 74 st2 = None 75 if st2 != None and (st1==None or st2.st_mtime > st1.st_mtime): 76 G_EXE = e 77 st1 = st2 63 EXE_DIR = "../../pjsip-apps/bin/" 64 EXECUTABLES = [ "pjsua_vc6d.exe", 65 "pjsua_vc6.exe", 66 "pjsua-i386-Win32-vc8-Debug.exe", 67 "pjsua-i386-Win32-vc8-Debug-Dynamic.exe", 68 "pjsua-i386-Win32-vc8-Debug-Static.exe", 69 "pjsua-i386-Win32-vc8-Release.exe", 70 "pjsua-i386-Win32-vc8-Release-Dynamic.exe", 71 "pjsua-i386-Win32-vc8-Release-Static.exe" 72 ] 73 e_ts = 0 74 for e in EXECUTABLES: 75 e = EXE_DIR + e 76 if os.access(e, os.F_OK): 77 st = os.stat(e) 78 if e_ts==0 or e_ts<st.st_mtime: 79 G_EXE = e 80 e_ts = st.st_mtime 81 78 82 if G_EXE=="": 79 83 print "Unable to find valid pjsua. Please build pjsip first" 80 84 sys.exit(1) 85 81 86 G_INUNIX = False 82 87 else:
Note: See TracChangeset
for help on using the changeset viewer.