MCPcopy
hub / github.com/prompt-toolkit/ptpython / configure

Function configure

src/ptpython/entry_points/run_ptpython.py:202–212  ·  view source on GitHub ↗
(repl: PythonRepl)

Source from the content-addressed store, hash-verified

200
201 # Apply config file
202 def configure(repl: PythonRepl) -> None:
203 if os.path.exists(config_file):
204 run_config(repl, config_file)
205
206 # Adjust colors if dark/light background flag has been given.
207 if a.light_bg:
208 repl.min_brightness = 0.0
209 repl.max_brightness = 0.60
210 elif a.dark_bg:
211 repl.min_brightness = 0.60
212 repl.max_brightness = 1.0
213
214 import __main__
215

Callers 2

__init__Method · 0.50
embedFunction · 0.50

Calls 1

run_configFunction · 0.90

Tested by

no test coverage detected