Detect Linux Runlevel

Wildman best_lay at
Mon Dec 5 15:58:56 EST 2016

I there a way to detect what the Linux runlevel is from
within a Python program?  I would like to be able to do
it without the use of an external program such as 'who'
or 'runlevel'.

<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!

More information about the Python-list mailing list