Skip to content
Snippets Groups Projects
Commit 56d488b4 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Merge pull request #105 from p-l-/feature-hist-envvar

Accept SCAPY_HISTFILE env var to set scapy hitory file (fixes #103)
parents 737dc84e ec37cbca
No related branches found
No related tags found
No related merge requests found
...@@ -346,7 +346,9 @@ extensions_paths: path or list of paths where extensions are to be looked for ...@@ -346,7 +346,9 @@ extensions_paths: path or list of paths where extensions are to be looked for
L2socket = None L2socket = None
L2listen = None L2listen = None
min_pkt_size = 60 min_pkt_size = 60
histfile = os.path.join(os.path.expanduser("~"), ".scapy_history") histfile = os.getenv('SCAPY_HISTFILE',
os.path.join(os.path.expanduser("~"),
".scapy_history"))
padding = 1 padding = 1
except_filter = "" except_filter = ""
debug_match = 0 debug_match = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment