Skip to content

Commit fddad86

Browse files
committed
Indicate the git revision if running a local build
1 parent 812d978 commit fddad86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

igor.py

+4
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ def print_banner(label):
328328
if '__pypy__' in sys.builtin_module_names:
329329
version += " (pypy %s)" % ".".join(str(v) for v in sys.pypy_version_info)
330330

331+
rev = platform.python_revision()
332+
if rev:
333+
version += " (rev {})".format(rev)
334+
331335
try:
332336
which_python = os.path.relpath(sys.executable)
333337
except ValueError:

0 commit comments

Comments
 (0)