old_contents: #
  # Copyright (c) 2013-2014 QuarksLab.
  # This file is part of IRMA project.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License in the top-level directory
  # of this distribution and at:
  #
  #    http://www.apache.org/licenses/LICENSE-2.0
  #
  # No part of the project, including this file, may be copied,
  # modified, propagated, or distributed except according to the
  # terms contained in the LICENSE file.
  
  import os
  
  from .sophos import Sophos
  from ..interface import AntivirusPluginInterface
  
  from lib.plugins import PluginBase, PluginLoadError
  from lib.plugins import BinaryDependency, PlatformDependency
  from lib.irma.common.utils import IrmaProbeType
  
  
  class SophosPlugin(PluginBase, Sophos, AntivirusPluginInterface):
  
      # =================
      #  plugin metadata
      # =================
  
      _plugin_name_ = "Sophos"
      _plugin_author_ = "IRMA (c) Quarkslab"
      _plugin_version_ = "1.0.0"
      _plugin_category_ = IrmaProbeType.antivirus
      _plugin_description_ = "Plugin for Sophos on Windows"
      _plugin_dependencies_ = [
          PlatformDependency('win32')
      ]
  
      @classmethod
      def verify(cls):
          # check if sophos is available
          module = Sophos()
          path = module.scan_path
          del module
          # perform checks
          if not path or not os.path.exists(path):
              raise PluginLoadError("{0}: verify() failed because "
                                    "Sophos executable was not found."
                                    "".format(cls.__name__))
  
      # =============
      #  constructor
      # =============
  
      def __init__(self):
          # load default configuration file
          self.module = Sophos()
  
new_contents: #
  # Copyright (c) 2013-2014 QuarksLab.
  # This file is part of IRMA project.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License in the top-level directory
  # of this distribution and at:
  #
  #    http://www.apache.org/licenses/LICENSE-2.0
  #
  # No part of the project, including this file, may be copied,
  # modified, propagated, or distributed except according to the
  # terms contained in the LICENSE file.
  
  import os
  
  from .sophos import Sophos
  from ..interface import AntivirusPluginInterface
  
  from lib.plugins import PluginBase, PluginLoadError
  from lib.plugins import BinaryDependency, PlatformDependency
  from lib.irma.common.utils import IrmaProbeType
  
  
  class SophosPlugin(PluginBase, Sophos, AntivirusPluginInterface):
  
      # =================
      #  plugin metadata
      # =================
  
      _plugin_name_ = "Sophos"
      _plugin_author_ = "IRMA (c) Quarkslab"
      _plugin_version_ = "1.0.0"
      _plugin_category_ = IrmaProbeType.antivirus
      _plugin_description_ = "Plugin for Sophos on GNU/Linux and Windows"
  
      @classmethod
      def verify(cls):
          # check if sophos is available
          module = Sophos()
          path = module.scan_path
          del module
          # perform checks
          if not path or not os.path.exists(path):
              raise PluginLoadError("{0}: verify() failed because "
                                    "Sophos executable was not found."
                                    "".format(cls.__name__))
  
      # =============
      #  constructor
      # =============
  
      def __init__(self):
          # load default configuration file
          self.module = Sophos()
  
subject: Remove windows dependency for Sophos AV