Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
0e9a897a
Commit
0e9a897a
authored
16 years ago
by
Phil
Browse files
Options
Downloads
Patches
Plain Diff
Replaced environ["HOME"] by expanduser("~"), which is more portable
parent
9d826f14
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scapy/config.py
+1
-1
1 addition, 1 deletion
scapy/config.py
scapy/main.py
+1
-1
1 addition, 1 deletion
scapy/main.py
with
2 additions
and
2 deletions
scapy/config.py
+
1
−
1
View file @
0e9a897a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
scapy/main.py
+
1
−
1
View file @
0e9a897a
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment