FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/tools/getnodeisrelease.py at master · Sannis/node · GitHub
Sannis
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
tools
/
getnodeisrelease.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (8 loc) · 261 Bytes
Breadcrumbs
node
/
tools
/
getnodeisrelease.py
Copy path
File metadata and controls
11 lines (8 loc) · 261 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
import
sys
,
os
,
re
node_version_h
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'src'
,
'node_version.h'
)
f
=
open
(
node_version_h
)
for
line
in
f
:
if
re
.
match
(
'#define NODE_VERSION_IS_RELEASE'
,
line
):
release
=
int
(
line
.
split
()[
2
])
print
release
Back
|
FazBrowse Home
|
New Git URL