Reduced calls to Profile.path
Since it triggers multiple walks and HTTP requests.
This commit is contained in:
parent
393758ec24
commit
eaf4528276
|
|
@ -150,14 +150,14 @@ class Profile(Script):
|
||||||
return {'path' : self.path}
|
return {'path' : self.path}
|
||||||
|
|
||||||
def __repr__(self, *args, **kwargs):
|
def __repr__(self, *args, **kwargs):
|
||||||
return f'Profile({self.path})'
|
return f'Profile({os.path.basename(self.profile)})'
|
||||||
|
|
||||||
def install(self):
|
def install(self):
|
||||||
return self.execute()
|
return self.execute()
|
||||||
|
|
||||||
class Application(Profile):
|
class Application(Profile):
|
||||||
def __repr__(self, *args, **kwargs):
|
def __repr__(self, *args, **kwargs):
|
||||||
return f'Application({self._path} <"{self.path}">)'
|
return f'Application({os.path.basename(self.profile)})'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path(self):
|
def path(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue