parameters: ()
return_statement: return device_list
docstring: Return a list of all supported devices
  
      A device is supported if it has a device model file in the devices folder
docstring_summary: Return a list of all supported devices
docstring_tokens: Return a list of all supported devices
function: def get_supported_devices():
      """
      Return a list of all supported devices
  
      A device is supported if it has a device model file in the devices folder
      """
      root_folder = os.path.dirname(os.path.abspath(__file__))
      dir_list = os.listdir(root_folder + "//devices")
      ignore_list = ['__init__.py']
      device_list = []
      for devicefile in dir_list:
          if devicefile.endswith(".py") and devicefile not in ignore_list:
              devicename = devicefile.split('.')[0]
              device_list.append(devicename)
  
      return device_list
function_tokens: def get_supported_devices ( ) : root_folder = os . path . dirname ( os . path . abspath ( __file__ ) ) dir_list = os . listdir ( root_folder + "//devices" ) ignore_list = [ '__init__.py' ] device_list = [ ] for devicefile in dir_list : if devicefile . endswith ( ".py" ) and devicefile not in ignore_list : devicename = devicefile . split ( '.' ) [ 0 ] device_list . append ( devicename ) return device_list