summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-16 19:19:36 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-16 19:19:36 +0100
commita7ab7860a57cdd41944355a400f62581f8b19d03 (patch)
tree532e3e68540102655e16f212386ff1fcf3440e31 /src/__main__.py
parentc binding (diff)
downloadblueshift-a7ab7860a57cdd41944355a400f62581f8b19d03.tar.gz
blueshift-a7ab7860a57cdd41944355a400f62581f8b19d03.tar.bz2
blueshift-a7ab7860a57cdd41944355a400f62581f8b19d03.tar.xz
use randr
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 400c675..f8db7a2 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -150,7 +150,6 @@ if config_file is not None:
code = code.decode('utf8', 'error') + '\n'
code = compile(code, file, 'exec')
exec(code, globals)
- break
else:
print('No configuration file found')
sys.exit(1)
@@ -168,6 +167,7 @@ if periodically is not None:
running = False
start_over()
monitor_controller()
+ close_c_bindings()
sys.exit(0)
running = False
signal.signal(signal.SIGTERM, signal_SIGTERM)
@@ -205,3 +205,5 @@ if periodically is not None:
start_over()
monitor_controller()
+close_c_bindings()
+