From 1ee32df25e4036bd98593ccc0cf99005d99e2b23 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Sat, 18 Nov 2006 18:32:50 +0000 Subject: [PATCH] set global main variable --- conf_files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf_files.py b/conf_files.py index 579641e..0730f7d 100644 --- a/conf_files.py +++ b/conf_files.py @@ -78,9 +78,12 @@ class conf_files: main = None -def GetSlivers_callback(data): main.callback(data) +def GetSlivers_callback(data): + global main + main.callback(data) def start(options, config): + global main main = conf_files(config) tools.as_daemon_thread(main.run) -- 2.43.0