# Path: pyanaconda/constants.py
# SELINUX_DEFAULT = 1


import selinux
import shlex
import glob
import logging
from pyanaconda.constants import SELINUX_DEFAULT
from collections import OrderedDict
class Flags(object):
    def __setattr__(self, attr, val):
        # pylint: disable-msg=E1101
        if attr not in self.__dict__ and not self._in_init:
            raise AttributeError(attr)
        else:
            self.__dict__[attr] = val

    def get(self, attr, val=None):
        return getattr(self, attr, val)

    def set_cmdline_bool(self, flag):
        if flag in self.cmdline:
            setattr(self, flag, self.cmdline.getbool(flag))

    def __init__(self, read_cmdline=True):
        self.__dict__['_in_init'] = True
        self.livecdInstall = 0
        self.dlabel = 0
        self.ibft = 1
        self.iscsi = 0
        self.usevnc = 0
        self.vncquestion = True
        self.mpath = 1
        self.dmraid = 1
        self.selinux = SELINUX_DEFAULT
        self.debug = 0
        self.targetarch = None
        self.useIPv4 = True
        self.useIPv6 = True

# Path: pyanaconda/constants.py
# SELINUX_DEFAULT = 1


# Path: pyanaconda/flags.py
import selinux
import shlex
import glob
import logging
from pyanaconda.constants import SELINUX_DEFAULT
from collections import OrderedDict

class Flags(object):
    def __setattr__(self, attr, val):
        # pylint: disable-msg=E1101
        if attr not in self.__dict__ and not self._in_init:
            raise AttributeError(attr)
        else:
            self.__dict__[attr] = val

    def get(self, attr, val=None):
        return getattr(self, attr, val)

    def set_cmdline_bool(self, flag):
        if flag in self.cmdline:
            setattr(self, flag, self.cmdline.getbool(flag))

    def __init__(self, read_cmdline=True):
        self.__dict__['_in_init'] = True
        self.livecdInstall = 0
        self.dlabel = 0
        self.ibft = 1
        self.iscsi = 0
        self.usevnc = 0
        self.vncquestion = True
        self.mpath = 1
        self.dmraid = 1
        self.selinux = SELINUX_DEFAULT
        self.debug = 0
        self.targetarch = None
        self.useIPv4 = True
        self.useIPv6 = True

        self.armPlatform = None