Changeset 2239


Ignore:
Timestamp:
Aug 26, 2008 2:35:16 PM (16 years ago)
Author:
bennylp
Message:

Fixed minor bug in exe availability checking in run.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/run.py

    r2084 r2239  
    6262        if sys.platform.find("win32")!=-1: 
    6363            e = "../../bin/pjsua_vc6d.exe" 
    64             st1 = os.stat(e) 
     64            if os.access(e, os.F_OK): 
     65                st1 = os.stat(e) 
     66            else: 
     67                st1 = None 
    6568            if st1 != None: 
    6669                G_EXE = e 
    67             e = "../../bin/pjsua_vc6d.exe" 
    68             st2 = os.stat(e) 
    69             if st2 != None and st2.st_mtime > st1.st_mtime: 
     70            e = "../../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): 
    7076                G_EXE = e 
    7177                st1 = st2 
Note: See TracChangeset for help on using the changeset viewer.