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-depend
binwalk
Commits
5c736ea7
Commit
5c736ea7
authored
Oct 13, 2020
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added improved version.py
parent
e9a9d050
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
.gitignore
.gitignore
+0
-1
version.py
src/binwalk/core/version.py
+14
-0
No files found.
.gitignore
View file @
5c736ea7
build
dist
version.py
.coverage
*.extracted
*.pyc
src/binwalk/core/version.py
0 → 100644
View file @
5c736ea7
try
:
from
importlib
import
metadata
get_version
=
lambda
:
metadata
.
version
(
"binwalk"
)
except
ImportError
:
try
:
# Running on pre-3.8 Python; use importlib-metadata package
import
importlib_metadata
as
metadata
get_version
=
lambda
:
metadata
.
version
(
"binwalk"
)
except
ImportError
:
# 3rd fallback via pkg_resources
import
pkg_resources
get_version
=
lambda
:
pkg_resources
.
get_distribution
(
"binwalk"
)
.
version
__version__
=
get_version
()
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