#!/usr/bin/env python3

from proc_stat import ProcStat
from proc_uptime import ProcUptime
from proc_version import ProcVersion
from proc_swaps import ProcSwaps


def print_stats():
    '''
    Parses details from the /proc/stat file.
    Gathered information is then printed to stdout.
    '''
    stat = ProcStat()
    stat.dump()


def print_uptime():
    '''
    Parses details from the /proc/uptime file.
    Gathered information is then printed to stdout.
    '''
    uptime = ProcUptime()
    uptime.dump()


def print_version():
    '''
    Parses details from the /proc/version file.
    Gathered information is then printed to stdout.
    '''
    version = ProcVersion()
    version.dump()


def print_swaps():
    '''
    Parses details from the /proc/swaps file.
    Gathered information is then printed to stdout.
    '''
    swaps = ProcSwaps()
    swaps.dump()


if __name__ == '__main__':
    print_stats()
    print_uptime()
    print_version()
    print_swaps()

@@ -17,16 +17,38 @@
 ython3%0A%0A
+import os%0Aimport sys%0A%0A
 from pro
@@ -70,16 +70,49 @@
 rocStat%0A
+from proc_swaps import ProcSwaps%0A
 from pro
@@ -138,16 +138,16 @@
 cUptime%0A
+
 from pro
@@ -179,41 +179,8 @@
 ion%0A
-from proc_swaps import ProcSwaps%0A
 %0A%0Ade
@@ -919,16 +919,124 @@
 ain__':%0A
+%0A    if os.name != 'posix':%0A        print('pyProc only supports UNIX systems, exiting')%0A        sys.exit()%0A%0A
     prin

add check for os