From 92b96bd09c07803e700abc4adb6ff53d07206057 Mon Sep 17 00:00:00 2001 From: x07maop Date: Wed, 30 Mar 2016 13:43:26 +0200 Subject: [PATCH] Closedown --- script/local.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/local.py b/script/local.py index 4d92fd4..ef9daac 100644 --- a/script/local.py +++ b/script/local.py @@ -149,6 +149,7 @@ def plot_file(file_name, title = None): class Listener(ControllerListener): def onControllerStateChanged(self, state, former): + global FILENAME if former == State.Busy: FILENAME = None controller.addListener(Listener()) #Old listeners are cleande in startup @@ -346,6 +347,7 @@ def wait_inj (value, delay=0.5): def set_file(file_name): """ """ + global FILENAME FILENAME = file_name class pol_mod(Readable):