���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/tools/ |
from __future__ import print_function import os def get_major_minor_patch(text): for line in text.splitlines(): if line.startswith('#define NODE_MAJOR_VERSION'): major = line.split()[2] elif line.startswith('#define NODE_MINOR_VERSION'): minor = line.split()[2] elif line.startswith('#define NODE_PATCH_VERSION'): patch = line.split()[2] return major, minor, patch node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src', 'node_version.h') with open(node_version_h) as in_file: print('.'.join(get_major_minor_patch(in_file.read())))