parameters: (self,
                   script_file=None,
                   work_dir=os.getcwd(),
                   interpreter='/bin/bash')
docstring: Construct batch script manager.
  
          Args:
              script_file (str): Script file.
              work_dir (str, optional): Working directory
                  (default: current working directory).
              interpreter (str, optional): Script interpreter
                  (default: /bin/bash).
docstring_summary: Construct batch script manager.
docstring_tokens: Construct batch script manager .
function: def __init__(self,
                   script_file=None,
                   work_dir=os.getcwd(),
                   interpreter='/bin/bash'):
          """Construct batch script manager.
  
          Args:
              script_file (str): Script file.
              work_dir (str, optional): Working directory
                  (default: current working directory).
              interpreter (str, optional): Script interpreter
                  (default: /bin/bash).
  
          """
  
          # Lines in script are stored as lists of strings
          self.header = []
          self.body = []
  
          # Construct file paths
          self.work_dir = os.path.realpath(work_dir)
          self.script_file = script_file
          if not self.script_file:
              self.script_file = os.path.join(self.work_dir, 'batch.sh')
          self.script_file = os.path.realpath(self.script_file)
          self.out_log_file = os.path.join(self.work_dir, 'out.log')
          self.err_log_file = os.path.join(self.work_dir, 'err.log')
  
          # Shebang line
          if interpreter:
              self.add_header_line('#!{}'.format(interpreter))
function_tokens: def __init__ ( self , script_file = None , work_dir = os . getcwd ( ) , interpreter = '/bin/bash' ) : # Lines in script are stored as lists of strings self . header = [ ] self . body = [ ] # Construct file paths self . work_dir = os . path . realpath ( work_dir ) self . script_file = script_file if not self . script_file : self . script_file = os . path . join ( self . work_dir , 'batch.sh' ) self . script_file = os . path . realpath ( self . script_file ) self . out_log_file = os . path . join ( self . work_dir , 'out.log' ) self . err_log_file = os . path . join ( self . work_dir , 'err.log' ) # Shebang line if interpreter : self . add_header_line ( '#!{}' . format ( interpreter ) )