class_docstr: General support for FreeSurfer commands.
  
  Every FS command accepts 'subjects_dir' input.
class_docstr_tok: ["General","support","for","FreeSurfer","commands",".","Every","FS","command","accepts","'subjects_dir","'","input","."]
code: def __init__(self, **inputs):
      super().__init__(**inputs)
      self.inputs.on_trait_change(
          self._subjects_dir_update, "subjects_dir"
      )
      if not self._subjects_dir:
          self._subjects_dir = Info.subjectsdir()
      if not isdefined(self.inputs.subjects_dir) and self._subjects_dir:
          self.inputs.subjects_dir = self._subjects_dir
      self._subjects_dir_update()
  
imports: import os
  from looseversion import LooseVersion
  from ...utils.filemanip import fname_presuffix
  from ..base import CommandLine, Directory, CommandLineInputSpec, isdefined, traits, TraitedSpec, File, PackageInfo
label_desc: Use image node_id 1 to create a new FSCommand object from inherited base classes: CommandLine with example: obj = FSCommand()