(self, is_interactive=False)
| 30 | |
| 31 | class Shell: |
| 32 | def __init__(self, is_interactive=False): |
| 33 | self.line="" |
| 34 | self.env=os.environ.copy() |
| 35 | self.initial_path = self.env["PATH"] |
| 36 | self.save_cwd() |
| 37 | self.is_interactive = is_interactive |
| 38 | |
| 39 | def reset_path(self): |
| 40 | self.env["PATH"]=self.initial_path |