mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
92 lines
3.4 KiB
Python
92 lines
3.4 KiB
Python
# Copyright (C) 2013, 2014 Red Hat, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
# MA 02110-1301 USA.
|
|
|
|
from virtcli import cliconfig as _cliconfig
|
|
|
|
|
|
def _setup_i18n():
|
|
import gettext
|
|
import locale
|
|
|
|
try:
|
|
locale.setlocale(locale.LC_ALL, '')
|
|
except:
|
|
# Can happen if user passed a bogus LANG
|
|
pass
|
|
|
|
gettext.install("virt-manager", _cliconfig.gettext_dir)
|
|
gettext.bindtextdomain("virt-manager", _cliconfig.gettext_dir)
|
|
|
|
_setup_i18n()
|
|
stable_defaults = _cliconfig.stable_defaults
|
|
|
|
from . import util
|
|
from virtinst import support
|
|
|
|
from virtinst.osxml import OSXML
|
|
from virtinst.domainfeatures import DomainFeatures
|
|
from virtinst.domainnumatune import DomainNumatune
|
|
from virtinst.domainblkiotune import DomainBlkiotune
|
|
from virtinst.domainmemorytune import DomainMemorytune
|
|
from virtinst.domainmemorybacking import DomainMemorybacking
|
|
from virtinst.domainresource import DomainResource
|
|
from virtinst.clock import Clock
|
|
from virtinst.cpu import CPU, CPUFeature
|
|
from virtinst.seclabel import Seclabel
|
|
from virtinst.pm import PM
|
|
from virtinst.idmap import IdMap
|
|
|
|
from virtinst import capabilities as CapabilitiesParser
|
|
from virtinst.domcapabilities import DomainCapabilities
|
|
from virtinst.interface import Interface, InterfaceProtocol
|
|
from virtinst.network import Network
|
|
from virtinst.nodedev import NodeDevice
|
|
from virtinst.storage import StoragePool, StorageVolume
|
|
|
|
from virtinst.device import VirtualDevice
|
|
from virtinst.deviceinterface import VirtualNetworkInterface
|
|
from virtinst.devicegraphics import VirtualGraphics
|
|
from virtinst.deviceaudio import VirtualAudio
|
|
from virtinst.deviceinput import VirtualInputDevice
|
|
from virtinst.devicedisk import VirtualDisk
|
|
from virtinst.devicehostdev import VirtualHostDevice
|
|
from virtinst.devicechar import (VirtualChannelDevice,
|
|
VirtualConsoleDevice,
|
|
VirtualParallelDevice,
|
|
VirtualSerialDevice)
|
|
from virtinst.devicevideo import VirtualVideoDevice
|
|
from virtinst.devicecontroller import VirtualController
|
|
from virtinst.devicewatchdog import VirtualWatchdog
|
|
from virtinst.devicefilesystem import VirtualFilesystem
|
|
from virtinst.devicesmartcard import VirtualSmartCardDevice
|
|
from virtinst.deviceredirdev import VirtualRedirDevice
|
|
from virtinst.devicememballoon import VirtualMemballoon
|
|
from virtinst.devicetpm import VirtualTPMDevice
|
|
from virtinst.devicerng import VirtualRNGDevice
|
|
from virtinst.devicepanic import VirtualPanicDevice
|
|
|
|
from virtinst.installer import (ContainerInstaller, ImportInstaller,
|
|
PXEInstaller, Installer)
|
|
|
|
from virtinst.distroinstaller import DistroInstaller
|
|
|
|
from virtinst.guest import Guest
|
|
from virtinst.cloner import Cloner
|
|
from virtinst.snapshot import DomainSnapshot
|
|
|
|
from virtinst.connection import VirtualConnection
|