def get_system_params(system):
    '\nReturns a dictionary of OS platform-specific parameters.\n    :param system: str, the system type as returned by `platform.system`\n    :rtype : dict\n    '
    a = {}
    workingdirprefix = 'systemprep-'
    if ('Linux' in system):
        tempdir = '/usr/tmp/'
        a['pathseparator'] = '/'
        a['readyfile'] = '/var/run/system-is-ready'
        a['restart'] = 'shutdown -r +1 &'
    elif ('Windows' in system):
        systemroot = os.environ['SYSTEMROOT']
        systemdrive = os.environ['SYSTEMDRIVE']
        tempdir = os.environ['TEMP']
        a['pathseparator'] = '\\'
        a['readyfile'] = '{0}\\system-is-ready'.format(systemdrive)
        a['restart'] = '{0}\\system32\\shutdown.exe/r /t 30 /d p:2:4 /c "SystemPrep complete. Rebooting computer."'.format(systemroot)
    else:
        raise SystemError('System, {0}, is not recognized?'.format(system))
    a['workingdir'] = create_working_dir(tempdir, workingdirprefix)
    return a
Returns a dictionary of OS platform-specific parameters.
    :param system: str, the system type as returned by `platform.system`
    :rtype : dict
def get_system_params(system):
    '\nReturns a dictionary of OS platform-specific parameters.\n    :param system: str, the system type as returned by `platform.system`\n    :rtype : dict\n    '
    a = {}
    workingdirprefix = 'systemprep-'
    if ('Linux' in system):
        tempdir = '/usr/tmp/'
        a['pathseparator'] = '/'
        a['readyfile'] = '/var/run/system-is-ready'
        a['restart'] = 'shutdown -r +1 &'
    elif ('Windows' in system):
        systemroot = os.environ['SYSTEMROOT']
        systemdrive = os.environ['SYSTEMDRIVE']
        tempdir = os.environ['TEMP']
        a['pathseparator'] = '\\'
        a['readyfile'] = '{0}\\system-is-ready'.format(systemdrive)
        a['restart'] = '{0}\\system32\\shutdown.exe/r /t 30 /d p:2:4 /c "SystemPrep complete. Rebooting computer."'.format(systemroot)
    else:
        raise SystemError('System, {0}, is not recognized?'.format(system))
    a['workingdir'] = create_working_dir(tempdir, workingdirprefix)
    return a