Execute PYTHONSTARTUP file if it exits. Call this after front end-specific initialisation.
(self)
| 548 | return "... " |
| 549 | |
| 550 | def startup(self) -> None: |
| 551 | """ |
| 552 | Execute PYTHONSTARTUP file if it exits. Call this after front |
| 553 | end-specific initialisation. |
| 554 | """ |
| 555 | filename = os.environ.get("PYTHONSTARTUP") |
| 556 | if filename: |
| 557 | encoding = inspection.get_encoding_file(filename) |
| 558 | with open(filename, encoding=encoding) as f: |
| 559 | source = f.read() |
| 560 | self.interp.runsource(source, filename, "exec") |
| 561 | |
| 562 | def current_string(self, concatenate=False): |
| 563 | """If the line ends in a string get it, otherwise return ''""" |
no test coverage detected