From b40f3bf4bb344aca5cfa29fe2eaaf9c65572cc48 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Wed, 20 Aug 2014 19:24:07 +0200 Subject: [PATCH] Initialize globalstorage before loading custom configuration --- src/modules/testmodule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/testmodule.py b/src/modules/testmodule.py index c14a1d205..ca7dcab7c 100755 --- a/src/modules/testmodule.py +++ b/src/modules/testmodule.py @@ -64,6 +64,8 @@ def main(): print("Only Python jobs can be tested.") return 1 + libcalamares.globalstorage = libcalamares.GlobalStorage() + # if a file for simulating globalStorage contents is provided, load it if args.globalstorage_yaml: with open(args.globalstorage_yaml) as f: @@ -77,7 +79,6 @@ def main(): cfg_doc = yaml.load(f) libcalamares.job = Job(args.moduledir, doc, cfg_doc) - libcalamares.globalstorage = libcalamares.GlobalStorage() scriptpath = os.path.abspath(args.moduledir) sys.path.append(scriptpath)