FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tinyGS/git_rev_macro.py at main · tinygs/tinyGS · GitHub
tinygs
/
tinyGS
Public
Notifications
You must be signed in to change notification settings
Fork
243
Star
1.5k
Code
Issues
78
Pull requests
3
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
tinyGS
/
git_rev_macro.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 265 Bytes
Breadcrumbs
tinyGS
/
git_rev_macro.py
Copy path
File metadata and controls
13 lines (11 loc) · 265 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
subprocess
revision
=
""
try
:
revision
=
(
subprocess
.
check_output
([
"git"
,
"describe"
,
"--tags"
,
"--always"
],
stderr
=
subprocess
.
DEVNULL
)
.
strip
()
.
decode
(
"utf-8"
)
)
except
:
pass
print
(
"-DGIT_VERSION='
\"
%s
\"
'"
%
revision
)
Back
|
FazBrowse Home
|
New Git URL