diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-29 20:59:55 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-29 20:59:55 +0100 |
commit | 5e74e55dde92df6d05031d36935ec52e3978083b (patch) | |
tree | d4930fc1bbc9d06123f398d5f01cc52bb7e6baf1 /src/monitor.py | |
parent | document and reduce code (diff) | |
download | blueshift-5e74e55dde92df6d05031d36935ec52e3978083b.tar.gz blueshift-5e74e55dde92df6d05031d36935ec52e3978083b.tar.bz2 blueshift-5e74e55dde92df6d05031d36935ec52e3978083b.tar.xz |
document and code reduction
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/monitor.py')
-rw-r--r-- | src/monitor.py | 28 |
1 files changed, 22 insertions, 6 deletions
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(): ''' |