GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/tools/getnodeversion.py at master · bobjohnbob/node Expand file tree/ Copy pathgetnodeversion.pyMore file actions 20 lines (16 loc) · 457 Bytes / Copy pathgetnodeversion.pyFile metadata and controls20 lines (16 loc) · 457 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import os import 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_MAJOR_VERSION', line): major = line.split()[2] if re.match('^#define NODE_MINOR_VERSION', line): minor = line.split()[2] if re.match('^#define NODE_PATCH_VERSION', line): patch = line.split()[2] print '%(major)s.%(minor)s.%(patch)s'% locals() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |