From 5e74e55dde92df6d05031d36935ec52e3978083b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 29 Mar 2014 20:59:55 +0100 Subject: document and code reduction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/monitor.py | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'src/monitor.py') diff --git a/src/monitor.py b/src/monitor.py index 470335c..f00b4bc 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -22,23 +22,39 @@ from aux import * from curve import * -# /usr/lib LIBDIR = 'bin' -sys.path.append(LIBDIR) +''' +:str Path to libraries, '/usr/lib' is standard +''' -# /usr/libexec LIBEXECDIR = 'bin' +''' +:str Path to executable libraries, '/usr/libexec' is standard +''' -randr_opened = None -vidmode_opened = None + +## Add the path to libraries to the list of paths to Python modules +sys.path.append(LIBDIR) +## Load DRM module try: from blueshift_drm import * except: - pass ## Not compiled with DRM support + # Not compiled with DRM support + pass +randr_opened = None +''' +:int? The index of the, with RandR, opened X screen, if any +''' + +vidmode_opened = None +''' +:int? The index of the, with vidmode, opened X screen, if any +''' + def close_c_bindings(): ''' -- cgit v1.2.3-70-g09d2