445
443
def get_user_option_as_int_from_SI(self, option_name, default=None):
446
444
"""Get a generic option from a human readable size in SI units, e.g 10MB
448
446
Accepted suffixes are K,M,G. It is case-insensitive and may be followed
449
447
by a trailing b (i.e. Kb, MB). This is intended to be practical and not
452
450
:return Integer, expanded to its base-10 value if a proper SI unit is
453
451
found. If the option doesn't exist, or isn't a value in
454
452
SI units, return default (which defaults to None)