tagui.py
def _tagui_delta(base_directory = None):
    """function to download stable delta files from tagui cutting edge version"""
    global __version__
    if base_directory is None or base_directory == '': return False
    # skip downloading if it is already done before for current release
    if os.path.isfile(base_directory + '/' + 'tagui_python_' + __version__): return True

    # define list of key tagui files to be downloaded and synced locally
    delta_list = ['tagui', 'tagui.cmd', 'end_processes', 'end_processes.cmd', 
                    'tagui_header.js', 'tagui_parse.php', 'tagui.sikuli/tagui.py']

    for delta_file in delta_list:
        tagui_delta_url = 'https://raw.githubusercontent.com/tebelorg/Tump/master/TagUI-Python/' + delta_file
        tagui_delta_file = base_directory + '/' + 'src' + '/' + delta_file
        if not download(tagui_delta_url, tagui_delta_file): return False

    # make sure execute permission is there for .tagui/src/tagui and end_processes
    if platform.system() in ['Linux', 'Darwin']:
        os.system('chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'tagui > /dev/null 2>&1')
        os.system('chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'end_processes > /dev/null 2>&1')

    # create marker file to skip syncing delta files next time for current release
    delta_done_file = _py23_open(base_directory + '/' + 'tagui_python_' + __version__, 'w')
    delta_done_file.write(_py23_write('TagUI installation files used by TagUI for Python'))
    delta_done_file.close()
    return True
function to download stable delta files from tagui cutting edge version
function to download stable delta files from tagui cutting edge version
function to download stable delta files from tagui cutting edge version
def _tagui_delta(base_directory = None):
    global __version__
    if base_directory is None or base_directory == '': return False
    if os.path.isfile(base_directory + '/' + 'tagui_python_' + __version__): return True
    delta_list = ['tagui', 'tagui.cmd', 'end_processes', 'end_processes.cmd', 
                    'tagui_header.js', 'tagui_parse.php', 'tagui.sikuli/tagui.py']
    for delta_file in delta_list:
        tagui_delta_url = 'https://raw.githubusercontent.com/tebelorg/Tump/master/TagUI-Python/' + delta_file
        tagui_delta_file = base_directory + '/' + 'src' + '/' + delta_file
        if not download(tagui_delta_url, tagui_delta_file): return False
    if platform.system() in ['Linux', 'Darwin']:
        os.system('chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'tagui > /dev/null 2>&1')
        os.system('chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'end_processes > /dev/null 2>&1')
    delta_done_file = _py23_open(base_directory + '/' + 'tagui_python_' + __version__, 'w')
    delta_done_file.write(_py23_write('TagUI installation files used by TagUI for Python'))
    delta_done_file.close()
    return True
def _tagui_delta ( base_directory = None ) : global __version__ if base_directory is None or base_directory == '' : return False if os . path . isfile ( base_directory + '/' + 'tagui_python_' + __version__ ) : return True delta_list = [ 'tagui' , 'tagui.cmd' , 'end_processes' , 'end_processes.cmd' , 'tagui_header.js' , 'tagui_parse.php' , 'tagui.sikuli/tagui.py' ] for delta_file in delta_list : tagui_delta_url = 'https://raw.githubusercontent.com/tebelorg/Tump/master/TagUI-Python/' + delta_file tagui_delta_file = base_directory + '/' + 'src' + '/' + delta_file if not download ( tagui_delta_url , tagui_delta_file ) : return False if platform . system ( ) in [ 'Linux' , 'Darwin' ] : os . system ( 'chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'tagui > /dev/null 2>&1' ) os . system ( 'chmod -R 755 ' + base_directory + '/' + 'src' + '/' + 'end_processes > /dev/null 2>&1' ) delta_done_file = _py23_open ( base_directory + '/' + 'tagui_python_' + __version__ , 'w' ) delta_done_file . write ( _py23_write ( 'TagUI installation files used by TagUI for Python' ) ) delta_done_file . close ( ) return True
function to download stable delta files from tagui cutting edge version
function to download stable delta files from tagui cutting edge version
"""function to download stable delta files from tagui cutting edge version""" # skip downloading if it is already done before for current release # define list of key tagui files to be downloaded and synced locally # make sure execute permission is there for .tagui/src/tagui and end_processes # create marker file to skip syncing delta files next time for current release
base_directory