Split gui from functionality

These are some fairly modest changes made to kano-settings to split the functionality away from the gui - a lot of the functionality has been moved to the system folder.
Sure sure, I thought config.txt is config file...


On 26 August 2014 16:17, Alex Simon <notifications@github.com> wrote:

> In kano_settings/system/audio.py:
>
> > +# Returns is_HDMI = True or False
> > +def is_HDMI():
> > +    f = open(rc_local_path, 'r')
> > +    file_string = str(f.read())
> > +
> > +    if file_string.find(analogue_string) != -1:
> > +        # Make sure config file is up to date
> > +        if get_setting('Audio') != 'Analogue':
> > +            set_setting('Audio', "Analogue")
> > +        return False
> > +
> > +    elif file_string.find(hdmi_string) != -1:
> > +        # Make sure config file is up to date
> > +        if get_setting('Audio') != 'HDMI':
> > +            set_setting('Audio', "HDMI")
> > +        return True
>
> Indeed @zsero <https://github.com/zsero> , hence my comment :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/KanoComputing/kano-settings/pull/169/files#r16719632>.
>