Fix 'module level import not at top of file'

This commit is contained in:
Alessio Sergi 2016-12-27 18:27:33 +01:00
parent b106370bd8
commit cac3e36895

View File

@ -26,11 +26,6 @@ import platform
import signal
import sys
# Global name
__version__ = '2.8_DEVELOP'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__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 <nicolas@nicolargo.com>'
__license__ = 'LGPL'
# Check locale
try:
locale.setlocale(locale.LC_ALL, '')