Ejemplo n.º 1
0
    def test_to_srcdir(self):
        srcdir = "/tmp/w/src"

        self.assertEquals(U.to_srcdir(srcdir, "/a/b/c"), "/tmp/w/src/a/b/c")
        self.assertEquals(U.to_srcdir(srcdir, "a/b"),    "/tmp/w/src/a/b")
        self.assertEquals(U.to_srcdir(srcdir, "/"),      "/tmp/w/src/")
Ejemplo n.º 2
0
 def copyfiles(self):
     for o in self.files:
         dest = PU.to_srcdir(self.srcdir, o.install_path)
         o.copy(dest, self.force)