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

Accept SCAPY_HISTFILE env var to set scapy hitory file (fixes #103)
This commit is contained in:
Guillaume Valadon 2016-03-29 10:45:49 +02:00
commit 56d488b4e6
1 changed files with 3 additions and 1 deletions

View File

@ -346,7 +346,9 @@ extensions_paths: path or list of paths where extensions are to be looked for
L2socket = None
L2listen = None
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
except_filter = ""
debug_match = 0