code: def initialise(self, args=None, env=None, file=None, cwd=None):
          
          self.spec_file = args and args.specs or None
          self.cwd = cwd or os.getcwd()
          self.file = file
          return self.spec_file is not None
docs: Filthy hack: we provide file and cwd here rather than as constructor
          args because Mr Hodgson decided to pass stdout as the only parameter
          to __init__.
          File should only be passed during tests.