idmtools.utils.local_os module

Info to determine info about Operation Systems.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

class idmtools.utils.local_os.LocalOS

Bases: object

A Central class for representing values whose proper access methods may differ between platforms.

exception UnknownOS

Bases: Exception

Unknown os detected.

os_mapping = {'darwin': 'mac', 'linux': 'lin', 'windows': 'win'}
username = 'docs'
name = 'lin'
static is_window() bool

Are we running on a windows system?

Returns:

True if on windows