Revert "Fix 'module level import not at top of file'"

This reverts commit cac3e36895.
This commit is contained in:
Alessio Sergi 2016-12-27 18:32:15 +01:00
parent cac3e36895
commit 7b7b47f3fb

View File

@ -26,6 +26,11 @@ 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
@ -34,16 +39,11 @@ except ImportError:
sys.exit(1)
# Import Glances libs
# Note: other Glances libs will be imported optionally
# Note: others 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, '')