Reduced calls to Profile.path

Since it triggers multiple walks and HTTP requests.
This commit is contained in:
Anton Hvornum 2020-12-06 13:10:10 +01:00
parent 393758ec24
commit eaf4528276
1 changed files with 2 additions and 2 deletions

View File

@ -150,14 +150,14 @@ class Profile(Script):
return {'path' : self.path}
def __repr__(self, *args, **kwargs):
return f'Profile({self.path})'
return f'Profile({os.path.basename(self.profile)})'
def install(self):
return self.execute()
class Application(Profile):
def __repr__(self, *args, **kwargs):
return f'Application({self._path} <"{self.path}">)'
return f'Application({os.path.basename(self.profile)})'
@property
def path(self):