Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def test_new_version():
    global l_major
    global l_minor
    global l_revision
    
    global v_major
    global v_minor
    global v_revision
    
    lock_ver.acquire()
    
    curr_ver = ( v_major , v_minor , v_revision )
    online_ver = ( l_major , l_minor , l_revision )
    
    for i in range( 0 , 3 ) :
        if online_ver[i] > curr_ver[i] :
            lock_ver.release()
            return True
        elif online_ver[i] < curr_ver[i] :
            lock_ver.release()
            return False
    
    lock_ver.release()
    return False
        


src/d/r/dr14-t.meter-1.0.11/dr14tmeter/dr14_tmeter.py   DR14-T.meter(Download)
from dr14tmeter.table import *
from dr14tmeter.audio_analysis import *
from dr14tmeter.dr14_global import dr14_version, TestVer, test_new_version, get_home_url, get_new_version, get_exe_name, test_hist_modules, test_compress_modules
import subprocess
import inspect
        subprocess.call( "stty sane" , shell=True ) 
 
    if test_new_version() :
        print_msg( "\n----------------------------------------------------------------------" )
        print_msg( " A new version of dr14_t.meter [ %s ] is available for download \n please visit: %s" % ( get_new_version() , get_home_url() ) )

src/d/r/dr14_t.meter-HEAD/dr14tmeter/dr14_tmeter.py   dr14_t.meter(Download)
from dr14tmeter.table import *
from dr14tmeter.audio_analysis import *
from dr14tmeter.dr14_global import dr14_version, TestVer, test_new_version, get_home_url, get_new_version, get_exe_name, test_hist_modules, test_compress_modules
import subprocess
import inspect
        subprocess.call( "stty sane" , shell=True ) 
 
    if test_new_version() :
        print_msg( "\n----------------------------------------------------------------------" )
        print_msg( " A new version of dr14_t.meter [ %s ] is available for download \n please visit: %s" % ( get_new_version() , get_home_url() ) )