summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-29 20:59:55 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-29 20:59:55 +0100
commit5e74e55dde92df6d05031d36935ec52e3978083b (patch)
treed4930fc1bbc9d06123f398d5f01cc52bb7e6baf1 /src/monitor.py
parentdocument and reduce code (diff)
downloadblueshift-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 '')
-rw-r--r--src/monitor.py28
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():
'''