def global_profile(self): return ProfileFactory.create_or_get_by_location( self.app_dir, name="global", app_name=self.app_name, explicit=True, isroot=True, activation_level=ActivationLevel.global_, default_color="fg-cyan", )
def distribution_profile(self): if self.distribution_profile_location is not None: return ProfileFactory.create_or_get_by_location( self.distribution_profile_location, name="distribution", app_name=self.app_name, explicit=False, isroot=True, activation_level=ActivationLevel.global_, readonly=True, ) else: return None
def workspace_profile(self): if self.project: return ProfileFactory.create_or_get_by_location( os.path.dirname(self.project) + '/.{}'.format(self.main_command.path), name="workspace", app_name=self.app_name, explicit=True, isroot=True, activation_level=ActivationLevel.local, default_color="fg-magenta", ) else: return None
def local_profile(self): if self.project: return ProfileFactory.create_or_get_by_location( os.path.join( self.project, "." + self.main_command.path ), name="local", app_name=self.app_name, explicit=True, isroot=True, activation_level=ActivationLevel.local, default_color="fg-green", ) else: return None