aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-09 09:51:10 +0200
committerMattias Andrée <maandree@operamail.com>2012-10-09 09:51:10 +0200
commita827eeebe9af51002896017a2ab7391f277254b0 (patch)
tree618ca8c037d14b4dbd0fe7eb9bea140466fcbc59
parentfirst commit (diff)
downloadadjbacklight-a827eeebe9af51002896017a2ab7391f277254b0.tar.gz
adjbacklight-a827eeebe9af51002896017a2ab7391f277254b0.tar.bz2
adjbacklight-a827eeebe9af51002896017a2ab7391f277254b0.tar.xz
beginning
Diffstat (limited to '')
-rwxr-xr-xadjbacklight.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/adjbacklight.py b/adjbacklight.py
new file mode 100755
index 0000000..5e28396
--- /dev/null
+++ b/adjbacklight.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+import os
+from subprocess import Popen, PIPE
+
+
+
+'''
+Hack to enforce UTF-8 in output (in the future, if you see anypony not using utf-8 in programs by default, report them to Princess Celestia so she can banish them to the moon)
+'''
+def print(text = '', end = '\n'):
+ sys.stdout.buffer.write((str(text) + end).encode('utf-8'))
+
+
+
+
+'''
+This is the mane class of the program
+'''
+class Adjbacklight():
+
+#Popen(compressCommand(ext).split(' '), stdout=fileout, stdin=filein).communicate()
+#(out, err) = Popen(['env', 'python', '--version'], stdout=PIPE, stderr=PIPE).communicate()
+
+
+'''
+Start the program from Adjbacklight.__init__ if this is the executed file
+'''
+if __name__ == '__main__':
+ Adjbacklight()