dav_tools.requirements

Requirements for running a progam.

Functions

require([root, os])

Require the program to statisfy the given requirements before continuing its execution.

Package Contents

dav_tools.requirements.require(root=False, os=[])

Require the program to statisfy the given requirements before continuing its execution.

Parameters:
  • root – If True, the program needs to be run as root (if it isn’t already, it automatically tries to relaunch itself with root privileges).

  • os (list[str]) – Unless the list is empty, the program can be run only on specified OSes. If it isn’t, the program terminates.

Return type:

None