mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-05 17:22:02 +03:00
Revert "Fix 'module level import not at top of file'"
This reverts commit cac3e36895
.
This commit is contained in:
parent
cac3e36895
commit
7b7b47f3fb
@ -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, '')
|
||||
|
Loading…
Reference in New Issue
Block a user