Fix "pylint fixes" wrt dir_path
This commit is contained in:
parent
677a3e51f4
commit
1f302fb776
@ -229,11 +229,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
default='default',
|
default='default',
|
||||||
doc='storage pool for this qube devices')
|
doc='storage pool for this qube devices')
|
||||||
|
|
||||||
dir_path = property('dir_path',
|
|
||||||
(lambda self: os.path.join(qubes.config.system_path['qubes_base_dir'],
|
|
||||||
self.dir_path_prefix, self.name)),
|
|
||||||
doc='Root directory for files related to this domain')
|
|
||||||
|
|
||||||
# XXX swallowed uses_default_kernel
|
# XXX swallowed uses_default_kernel
|
||||||
# XXX not applicable to HVM?
|
# XXX not applicable to HVM?
|
||||||
kernel = qubes.property('kernel', type=str,
|
kernel = qubes.property('kernel', type=str,
|
||||||
@ -405,6 +400,14 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
return not hasattr(self, 'template')
|
return not hasattr(self, 'template')
|
||||||
|
|
||||||
|
|
||||||
|
@property
|
||||||
|
def dir_path(self):
|
||||||
|
'''Root directory for files related to this domain'''
|
||||||
|
return os.path.join(
|
||||||
|
qubes.config.system_path['qubes_base_dir'],
|
||||||
|
self.dir_path_prefix,
|
||||||
|
self.name)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon_path(self):
|
def icon_path(self):
|
||||||
return os.path.join(self.dir_path, 'icon.png')
|
return os.path.join(self.dir_path, 'icon.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user