Skip to content
Snippets Groups Projects
Commit 0e9a897a authored by Phil's avatar Phil
Browse files

Replaced environ["HOME"] by expanduser("~"), which is more portable

parent 9d826f14
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,7 @@ extensions_paths: path or list of paths where extensions are to be looked for
L3socket = None
L2socket = None
L2listen = None
histfile = os.path.join(os.environ.get("HOME",""), ".scapy_history")
histfile = os.path.join(os.path.expanduser("~"), ".scapy_history")
padding = 1
except_filter = ""
debug_match = 0
......
......@@ -12,7 +12,7 @@ import utils
def _probe_config_file(cf):
cf_path = os.path.join(os.environ.get("HOME",""), cf)
cf_path = os.path.join(os.path.expanduser("~"), cf)
try:
os.stat(cf_path)
except OSError:
......
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