Ejemplo n.º 1
0
 def global_profile(self):
     if self._global_profile is None:
         self._global_profile = ProfileFactory.get(
             self.app_dir,
             name="global",
             app_name=self.app_name
         )
     return self._global_profile
Ejemplo n.º 2
0
 def workgroup_profile(self):
     if not self._workgroup_profile:
         name = self.main_command.path
         self._workgroup_profile = ProfileFactory.get(
             os.path.dirname(self.project) + '/.{}'.format(name),
             name="workgroup",
             app_name=self.app_name,
         ) if self.project else None
     return self._workgroup_profile
Ejemplo n.º 3
0
 def local_profile(self):
     if not self._local_profile:
         self._local_profile = ProfileFactory.get(
             os.path.join(
                 self.project,
                 "." + self.main_command.path
             ),
             name="local",
             app_name=self.app_name,
         ) if self.project else None
     return self._local_profile