summaryrefslogtreecommitdiffstats
path: root/src/monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor.py')
-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():
'''