From 0c1b681fa228df5a18755aa770b0c34e6cb713f1 Mon Sep 17 00:00:00 2001 From: Phil <phil@secdev.org> Date: Mon, 11 Jan 2010 17:59:00 +0100 Subject: [PATCH] Moved conf.color_theme initialization to be able to overload it from scapy_startup file --- scapy/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/main.py b/scapy/main.py index d50763f2..a9db5e11 100644 --- a/scapy/main.py +++ b/scapy/main.py @@ -252,6 +252,7 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=20): globkeys += mydict.keys() + conf.color_theme = DefaultTheme() if STARTUP_FILE: _read_config_file(STARTUP_FILE) @@ -295,7 +296,6 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=20): atexit.register(scapy_write_history_file,readline) atexit.register(scapy_delete_temp_files) - conf.color_theme = DefaultTheme() IPYTHON=False if conf.interactive_shell.lower() == "ipython": -- GitLab