Fix "pylint fixes" wrt dir_path

This commit is contained in:
Wojtek Porczyk 2016-06-15 19:47:36 +02:00
parent 677a3e51f4
commit 1f302fb776

View File

@ -229,11 +229,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
default='default',
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 not applicable to HVM?
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')
@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
def icon_path(self):
return os.path.join(self.dir_path, 'icon.png')