Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
e7043ba6
Commit
e7043ba6
authored
Sep 13, 2017
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to setup.py
parent
2a2ba78a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
setup.py
setup.py
+5
-5
No files found.
setup.py
View file @
e7043ba6
...
...
@@ -118,10 +118,10 @@ class IDAUnInstallCommand(Command):
binwalk_dst_path
=
os
.
path
.
join
(
self
.
idadir
,
'python'
,
'binwalk'
)
if
os
.
path
.
exists
(
binida_dst_path
):
sys
.
stdout
.
write
(
"removing
%
s
\n
"
%
binida_dst_path
)
sys
.
stdout
.
write
(
"removing
'
%
s'
\n
"
%
binida_dst_path
)
os
.
remove
(
binida_dst_path
)
if
os
.
path
.
exists
(
binwalk_dst_path
):
sys
.
stdout
.
write
(
"removing
%
s
\n
"
%
binwalk_dst_path
)
sys
.
stdout
.
write
(
"removing
'
%
s'
\n
"
%
binwalk_dst_path
)
shutil
.
rmtree
(
binwalk_dst_path
)
...
...
@@ -219,12 +219,12 @@ class CleanCommand(Command):
pass
def
run
(
self
):
sys
.
stdout
.
write
(
"removing
%
s
\n
"
%
(
VERSION_FILE
))
sys
.
stdout
.
write
(
"removing
'
%
s'
\n
"
%
(
VERSION_FILE
))
try
:
os
.
remove
(
VERSION_FILE
)
except
OSError
as
e
:
sys
.
stderr
.
write
(
"failed to remove file
%
s
:
%
s
\n
"
%
(
VERSION_FILE
,
str
(
e
)))
sys
.
stderr
.
write
(
"failed to remove file
'
%
s'
:
%
s
\n
"
%
(
VERSION_FILE
,
str
(
e
)))
try
:
remove_tree
(
os
.
path
.
join
(
MODULE_DIRECTORY
,
"build"
))
...
...
@@ -328,7 +328,7 @@ if 'install' in ' '.join(sys.argv) or 'build' in ' '.join(sys.argv):
try
:
with
open
(
VERSION_FILE
,
"w"
)
as
fp
:
fp
.
write
(
"# This file has been auto-generated by setup.py
\n
"
)
fp
.
write
(
'__version__ = "
%
s"'
%
MODULE_VERSION
)
fp
.
write
(
'__version__ = "
%
s"
\n
'
%
MODULE_VERSION
)
except
IOError
as
e
:
sys
.
stderr
.
write
(
"failed to create file
%
s:
%
s
\n
"
%
(
VERSION_FILE
,
str
(
e
)))
sys
.
exit
(
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment