class_docstr: Base run config for public installs.
class_docstr_tok: ["Base","run","config","for","public","installs","."]
code: def __init__(self, base_dir, exec_name, version, cwd=None, env=None):
      base_dir = os.path.expanduser(base_dir)
      version = version or FLAGS.sc2_version or "latest"
      cwd = cwd and os.path.join(base_dir, cwd)
      super(LocalBase, self).__init__(
          replay_dir=os.path.join(base_dir, "Replays"),
          data_dir=base_dir,
          tmp_dir=None,
          version=version,
          cwd=cwd,
          env=env,
      )
      if FLAGS.sc2_dev_build:
          self.version = self.version._replace(build_version=0)
      elif (
          self.version.build_version
          < lib.VERSIONS["3.16.1"].build_version
      ):
          raise sc_process.SC2LaunchError(
              "SC2 Binaries older than 3.16.1 don't support the api."
          )
      self._exec_name = exec_name
  
imports: import copy
  import os
  import platform
  import subprocess
  import sys
  from absl import flags
  from absl import logging
  from pysc2.lib import sc_process
  from pysc2.run_configs import lib
label_desc: Use image node_id 1 to create a new LocalBase object from inherited base classes: lib with example: obj = LocalBase(base_dir, exec_name, version, cwd, env)