'Set the path of the video analyser.
The path set depends on the current platform.
:return:'

def _set_video_analyser_path(self):

    if (sys.platform == 'win32'):
        from Tribler.Main.hacks import get_environment_variable
        path_env = get_environment_variable(u'PATH')
    elif is_android():
        path_env = unicode(os.environ['PYTHONPATH'])
    else:
        path_env = os.environ['PATH']
    if (sys.platform == 'win32'):
        ffmpeg_name = u'ffmpeg.exe'
    elif (sys.platform == 'darwin'):
        ffmpeg_name = u'ffmpeg'
    elif find_executable('avconv', path_env):
        ffmpeg_name = u'avconv'
    else:
        ffmpeg_name = u'ffmpeg'
    ffmpeg_path = find_executable(ffmpeg_name, path_env)
    if (ffmpeg_path is None):
        if (sys.platform == 'darwin'):
            self.config['general']['videoanalyserpath'] = 'vlc/ffmpeg'
        else:
            self.config['general']['videoanalyserpath'] = os.path.abspath(ffmpeg_name)
    else:
        self.config['general']['videoanalyserpath'] = os.path.abspath(ffmpeg_path)
