# Path: pyanaconda/flags.py
# class Flags(object):
# class BootArgs(OrderedDict):
#     def __setattr__(self, attr, val):
#     def get(self, attr, val=None):
#     def set_cmdline_bool(self, flag):
#     def __init__(self, read_cmdline=True):
#     def read_cmdline(self):
#     def __init__(self, cmdline=None, files=None):
#     def read(self, filenames):
#     def readstr(self, cmdline):
#     def getbool(self, arg, default=False):
# def can_touch_runtime_system(msg, touch_live=False):
# 
# Path: pyanaconda/kickstart.py
# def getAvailableDiskSpace(storage):
#     """
#     Get overall disk space available on disks we may use (not free space on the
#     disks, but overall space on the disks).
# 
#     :param storage: blivet.Blivet instance
#     :return: overall disk space available in MB
#     :rtype: int
# 
#     """
# 
#     disk_space = 0
#     for disk in storage.disks:
#         if not storage.config.clearPartDisks or \
#                 disk.name in storage.config.clearPartDisks:
#             disk_space += disk.size
# 
#     return disk_space


from distutils.sysconfig import get_python_lib
from blivet.partspec import PartSpec
from blivet.devicelibs import swap
from blivet.platform import platform
from pyanaconda.flags import flags
from pyanaconda.kickstart import getAvailableDiskSpace
import os, sys
import imputil
import logging
        if fileName[-3:] != ".py" and fileName[-4:-1] != ".py":
            continue
        mainName = fileName.split(".")[0]
        if done.has_key(mainName):
            continue
        done[mainName] = 1


        try:
            found = imputil.imp.find_module(mainName)
        except ImportError as err:
            log.warning ("module import of %s failed: %s, %s",
                         mainName, sys.exc_type, err)
            continue

        try:
            loaded = imputil.imp.load_module(mainName, found[0], found[1], found[2])

            obj = loaded.InstallClass

            if obj.__dict__.has_key('sortPriority'):
                sortOrder = obj.sortPriority
            else:
                sortOrder = 0

            if obj.hidden == 0 or showHidden == 1:
                lst.append(((obj.name, obj), sortOrder))
        except (ImportError, AttributeError) as err:
            log.warning ("module import of %s failed: %s, %s",
                         mainName, sys.exc_type, err)

# Path: pyanaconda/flags.py
# class Flags(object):
# class BootArgs(OrderedDict):
#     def __setattr__(self, attr, val):
#     def get(self, attr, val=None):
#     def set_cmdline_bool(self, flag):
#     def __init__(self, read_cmdline=True):
#     def read_cmdline(self):
#     def __init__(self, cmdline=None, files=None):
#     def read(self, filenames):
#     def readstr(self, cmdline):
#     def getbool(self, arg, default=False):
# def can_touch_runtime_system(msg, touch_live=False):
# 
# Path: pyanaconda/kickstart.py
# def getAvailableDiskSpace(storage):
#     """
#     Get overall disk space available on disks we may use (not free space on the
#     disks, but overall space on the disks).
# 
#     :param storage: blivet.Blivet instance
#     :return: overall disk space available in MB
#     :rtype: int
# 
#     """
# 
#     disk_space = 0
#     for disk in storage.disks:
#         if not storage.config.clearPartDisks or \
#                 disk.name in storage.config.clearPartDisks:
#             disk_space += disk.size
# 
#     return disk_space


# Path: pyanaconda/installclass.py
from distutils.sysconfig import get_python_lib
from blivet.partspec import PartSpec
from blivet.devicelibs import swap
from blivet.platform import platform
from pyanaconda.flags import flags
from pyanaconda.kickstart import getAvailableDiskSpace
import os, sys
import imputil
import logging

        if fileName[-3:] != ".py" and fileName[-4:-1] != ".py":
            continue
        mainName = fileName.split(".")[0]
        if done.has_key(mainName):
            continue
        done[mainName] = 1


        try:
            found = imputil.imp.find_module(mainName)
        except ImportError as err:
            log.warning ("module import of %s failed: %s, %s",
                         mainName, sys.exc_type, err)
            continue

        try:
            loaded = imputil.imp.load_module(mainName, found[0], found[1], found[2])

            obj = loaded.InstallClass

            if obj.__dict__.has_key('sortPriority'):
                sortOrder = obj.sortPriority
            else:
                sortOrder = 0

            if obj.hidden == 0 or showHidden == 1:
                lst.append(((obj.name, obj), sortOrder))
        except (ImportError, AttributeError) as err:
            log.warning ("module import of %s failed: %s, %s",
                         mainName, sys.exc_type, err)

            if flags.debug: raise