Ubuntu Pastebin

Paste from rhuddie at Wed, 7 Jan 2015 14:38:09 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import subprocess


def is_here_maps_supported():
    try:
        supported = False
        ret = subprocess.check_output(
            'click list | grep com.nokia.heremaps', shell=True)
        apps_list = ret.decode().splitlines()
        if len(apps_list) > 0:
            supported = True
    except:
        supported = False
    return supported
Download as text