module loghelper.os_helper

Short summary

module pyquickhelper.loghelper.os_helper

Helpers for module os.

source on GitHub

Functions

function

truncated documentation

get_machine

Returns the machine name.

get_user

Returns the user name.

Documentation

Helpers for module os.

source on GitHub

pyquickhelper.loghelper.os_helper.get_machine()[source][source]

Returns the machine name.

Returns

machine name

The method assumes environment variable COMPUTERNAME, HOSTNAME or NAME is available. Otherwise, you should use module platform.

source on GitHub

pyquickhelper.loghelper.os_helper.get_user()[source][source]

Returns the user name.

Returns

user name

The method assumes environment variable USERNAME or USER is available.

source on GitHub