mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
Initialize globalstorage before loading custom configuration
This commit is contained in:
parent
b51cfd6a45
commit
b40f3bf4bb
1 changed files with 2 additions and 1 deletions
|
@ -64,6 +64,8 @@ def main():
|
||||||
print("Only Python jobs can be tested.")
|
print("Only Python jobs can be tested.")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
libcalamares.globalstorage = libcalamares.GlobalStorage()
|
||||||
|
|
||||||
# if a file for simulating globalStorage contents is provided, load it
|
# if a file for simulating globalStorage contents is provided, load it
|
||||||
if args.globalstorage_yaml:
|
if args.globalstorage_yaml:
|
||||||
with open(args.globalstorage_yaml) as f:
|
with open(args.globalstorage_yaml) as f:
|
||||||
|
@ -77,7 +79,6 @@ def main():
|
||||||
cfg_doc = yaml.load(f)
|
cfg_doc = yaml.load(f)
|
||||||
|
|
||||||
libcalamares.job = Job(args.moduledir, doc, cfg_doc)
|
libcalamares.job = Job(args.moduledir, doc, cfg_doc)
|
||||||
libcalamares.globalstorage = libcalamares.GlobalStorage()
|
|
||||||
|
|
||||||
scriptpath = os.path.abspath(args.moduledir)
|
scriptpath = os.path.abspath(args.moduledir)
|
||||||
sys.path.append(scriptpath)
|
sys.path.append(scriptpath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue