From cac3e3689560e9f378f88411b7e609511342ff59 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 27 Dec 2016 18:27:33 +0100 Subject: [PATCH] Fix 'module level import not at top of file' --- glances/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/glances/__init__.py b/glances/__init__.py index a52d987d..8703aa3b 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -26,11 +26,6 @@ import platform import signal import sys -# Global name -__version__ = '2.8_DEVELOP' -__author__ = 'Nicolas Hennion ' -__license__ = 'LGPL' - # Import psutil try: from psutil import __version__ as psutil_version @@ -39,11 +34,16 @@ except ImportError: sys.exit(1) # Import Glances libs -# Note: others Glances libs will be imported optionally +# Note: other Glances libs will be imported optionally from glances.logger import logger from glances.main import GlancesMain from glances.globals import WINDOWS +# Global name +__version__ = '2.8_DEVELOP' +__author__ = 'Nicolas Hennion ' +__license__ = 'LGPL' + # Check locale try: locale.setlocale(locale.LC_ALL, '')