From eaf45282764bcd71fc714e820e133ff3921dfa58 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Dec 2020 13:10:10 +0100 Subject: Reduced calls to Profile.path Since it triggers multiple walks and HTTP requests. --- archinstall/lib/profiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 091550e0..49a20794 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -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): -- cgit v1.2.3-54-g00ecf