old_contents: import argparse
  import os
  import logging
  
  from fusesoc.edatool import EdaTool
  
  logger = logging.getLogger(__name__)
  
  class FileAction(argparse.Action):
      def __call__(self, parser, namespace, values, option_string=None):
          setattr(namespace, self.dest, [os.path.abspath(values[0])])
  
  class Simulator(EdaTool):
  
      TOOL_TYPE = 'sim'
  
      def configure(self, args, skip_params = False):
          if not skip_params:
              self.parse_args(args, 'sim', ['plusarg', 'vlogdefine', 'vlogparam', 'cmdlinearg'])
          super(Simulator, self).configure(args)
  
      def run(self, args):
          self.parse_args(args, 'sim', ['plusarg', 'vlogdefine', 'vlogparam', 'cmdlinearg'])
          if 'pre_run_scripts' in self.fusesoc_options:
              self._run_scripts(self.fusesoc_options['pre_run_scripts'])
  
      def done(self, args):
          if 'post_run_scripts' in self.fusesoc_options:
              self._run_scripts(self.fusesoc_options['post_run_scripts'])
  
new_contents: import logging
  
  from fusesoc.edatool import EdaTool
  
  logger = logging.getLogger(__name__)
  
  class Simulator(EdaTool):
  
      TOOL_TYPE = 'sim'
  
      def configure(self, args, skip_params = False):
          if not skip_params:
              self.parse_args(args, 'sim', ['plusarg', 'vlogdefine', 'vlogparam', 'cmdlinearg'])
          super(Simulator, self).configure(args)
  
      def run(self, args):
          self.parse_args(args, 'sim', ['plusarg', 'vlogdefine', 'vlogparam', 'cmdlinearg'])
          if 'pre_run_scripts' in self.fusesoc_options:
              self._run_scripts(self.fusesoc_options['pre_run_scripts'])
  
      def done(self, args):
          if 'post_run_scripts' in self.fusesoc_options:
              self._run_scripts(self.fusesoc_options['post_run_scripts'])
  
subject: Remove dead code