mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 01:01:31 +03:00
Fix 'module level import not at top of file'
This commit is contained in:
parent
b106370bd8
commit
cac3e36895
@ -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, '')
|
||||
|
Loading…
Reference in New Issue
Block a user