qubes: support QUBES_XML_PATH environment variable
This is reworked core: load default qubes.xml location from QUBES_XML_PATH env variable QubesOS/qubes-issues#1730
This commit is contained in:
parent
e3c94f3949
commit
c80e89d47e
@ -1183,9 +1183,13 @@ class Qubes(PropertyHolder):
|
|||||||
#: Information about host system
|
#: Information about host system
|
||||||
self.host = QubesHost(self)
|
self.host = QubesHost(self)
|
||||||
|
|
||||||
self._store = store if store is not None else os.path.join(
|
if store is not None:
|
||||||
qubes.config.system_path['qubes_base_dir'],
|
self._store = store
|
||||||
qubes.config.system_path['qubes_store_filename'])
|
else:
|
||||||
|
self._store = os.environ.get('QUBES_XML_PATH',
|
||||||
|
os.path.join(
|
||||||
|
qubes.config.system_path['qubes_base_dir'],
|
||||||
|
qubes.config.system_path['qubes_store_filename']))
|
||||||
|
|
||||||
super(Qubes, self).__init__(xml=None, **kwargs)
|
super(Qubes, self).__init__(xml=None, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user