class_docstr: Base class for different run configs.
class_docstr_tok: ["Base","class","for","different","run","configs","."]
docstr: Initialize the runconfig with the various directories needed.
  
  Args:
    replay_dir: Where to find replays. Might not be accessible to SC2.
    data_dir: Where SC2 should find the data and battle.net cache.
    tmp_dir: The temporary directory. None is system default.
    version: The game version to run, a string.
    cwd: Where to set the current working directory.
    env: What to pass as the environment variables.
docstr_tok: ["Initialize","the","runconfig","with","the","various","directories","needed",".","Args",":","replay_dir",":","Where","to","find","replays",".","Might","not","be","accessible","to","SC2",".","data_dir",":","Where","SC2","should","find","the","data","and","battle.net","cache",".","tmp_dir",":","The","temporary","directory",".","None","is","system","default",".","version",":","The","game","version","to","run",",","a","string",".","cwd",":","Where","to","set","the","current","working","directory",".","env",":","What","to","pass","as","the","environment","variables","."]
code: def __init__(
      self, replay_dir, data_dir, tmp_dir, version, cwd=None, env=None
  ):
      """Initialize the runconfig with the various directories needed.
  
      Args:
        replay_dir: Where to find replays. Might not be accessible to SC2.
        data_dir: Where SC2 should find the data and battle.net cache.
        tmp_dir: The temporary directory. None is system default.
        version: The game version to run, a string.
        cwd: Where to set the current working directory.
        env: What to pass as the environment variables.
      """
      self.replay_dir = replay_dir
      self.data_dir = data_dir
      self.tmp_dir = tmp_dir
      self.cwd = cwd
      self.env = env
      self.version = self._get_version(version)
  
imports: import collections
  import datetime
  import os
  from pysc2.lib import gfile
label_desc: Use image node_id 1 to create a new RunConfig object from inherited base classes: object with example: obj = RunConfig(replay_dir, data_dir, tmp_dir, version, cwd, env)