Beispiel #1
0
 def test_addprefix(self):
   from craftr.utils.path import addprefix
   self.assertEqual(addprefix(_('foo/bar/baz'), _('spam-')), _('foo/bar/spam-baz'))
   self.assertEqual(
     addprefix([
       _('foo/bar/baz'),
       _('foo/bar/ham/cheeck'),
       _('/gogodo')], _('egg_')),
     [
       _('foo/bar/egg_baz'),
       _('foo/bar/ham/egg_cheeck'),
       _('/egg_gogodo')])
Beispiel #2
0
def lib(x):
    return path.addprefix(path.addsuffix(x, ".a"), "lib")