3 def string_in_file( filepath, string ):
5 f = open( filepath, 'r' )
6 found = f.read().find( string ) != -1
14 if ( os.path.exists('/etc/osso_software_version') or
15 os.path.exists('/proc/component_version') or
16 string_in_file('/etc/issue', 'maemo') ):
21 platform = get_platform()