diff options
author | cookedm <cookedm@localhost> | 2007-06-17 19:17:58 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-06-17 19:17:58 +0000 |
commit | af6c835e84611aad64627c8b53d2d5b229fa5528 (patch) | |
tree | 4cb55c4a94a085c66da0a52da42d7aee027c4cde /numpy/__init__.py | |
parent | bc86e4a60050c629a57ef87f2dee48af6006b230 (diff) | |
download | numpy-af6c835e84611aad64627c8b53d2d5b229fa5528.tar.gz |
Print install location, numpy version, and python verstion in numpy.test()
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 473b8e5f0..98f07ff49 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -85,6 +85,10 @@ testing --> NumpyTest """ def test(*args, **kw): + import os, sys + print 'Numpy is installed in %s' % (os.path.split(__file__)[0],) + print 'Numpy version %s' % (__version__,) + print 'Python version %s' % (sys.version.replace('\n', '',),) return NumpyTest().test(*args, **kw) test.__doc__ = NumpyTest.test.__doc__ |