code: def run_activate_this(self):
          
          if self.is_venv:
              activate_this = os.path.join(self.scripts_dir, "activate_this.py")
              if not os.path.isfile(activate_this):
                  raise OSError("No such file: {0!s}".format(activate_this))
              with open(activate_this, "r") as f:
                  code = compile(f.read(), activate_this, "exec")
                  exec(code, dict(__file__=activate_this))
docs: Runs the environment's inline activation script