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[source]#

Bases: object

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

exception UnknownOS[source]#

Bases: Exception

Unknown os detected.

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

Are we running on a windows system?

Returns:

True if on windows