diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-09-04 16:46:20 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-09-04 16:46:20 +0200 |
commit | a0b5982f1dd71ad47c5b91a372a62efc9e82139a (patch) | |
tree | a03b064afb002e5def33f130180d4d14d94f08ff /unitest-restful.py | |
parent | 23292675a3f3265fee1c83aa7607c858a26ec671 (diff) |
Refactor exports modules loading
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-x | unitest-restful.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unitest-restful.py b/unitest-restful.py index b6e5332a..4cd9a193 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -26,6 +26,12 @@ import subprocess import time import numbers import unittest +import sys + +# Check Python version +if sys.version_info < (3, 4): + print('Glances requires at least Python 3.4 to run.') + sys.exit(1) from glances import __version__ from glances.globals import text_type |