Esempio n. 1
0
 def load(self):
     #
     # If the build set file ends with .cfg the user has passed to the
     # buildset builder a configuration so we just return it.
     #
     if self.bset.endswith('.cfg'):
         configs = [self.bset]
     else:
         exbset = self.macros.expand(self.bset)
         self.macros['_bset'] = exbset
         self.macros['_bset_tmp'] = build.short_name(exbset)
         root, ext = path.splitext(exbset)
         if exbset.endswith('.bset'):
             bset = exbset
         else:
             bset = '%s.bset' % (exbset)
         configs = self.parse(bset)
     return configs
Esempio n. 2
0
 def load(self):
     #
     # If the build set file ends with .cfg the user has passed to the
     # buildset builder a configuration so we just return it.
     #
     if self.bset.endswith('.cfg'):
         configs = [self.bset]
     else:
         exbset = self.macros.expand(self.bset)
         self.macros['_bset'] = exbset
         self.macros['_bset_tmp'] = build.short_name(exbset)
         root, ext = path.splitext(exbset)
         if exbset.endswith('.bset'):
             bset = exbset
         else:
             bset = '%s.bset' % (exbset)
         configs = self.parse(bset)
     return configs