Option 1: Using linux2 in p
<pre>
    return sys.platform in plugin.plugin_object.get_supported_os()
</pre>

Option 2: Using linux in plugins
<pre>
    for os in plugin.plugin_object.get_supported_os():
        if sys.platform.startswith(os):
            return True
                
        return False
</pre>


Personally I think option 1 is simpler to maintain. Option 2 allows us to use the slightly shorter "linux" when listing the supported OSes in the plugin file but I don't think its worth it.

From a documentation point of view it's also easier for us to simply say "supported options can be found in the sys.platform documentation http://docs.python.org/2/library/sys.html#sys.platform"

Otherwise we'd have to maintain a list of options we support in our docs which are different than what's in the sys.platform docs and this could get confusing.