Ejemplo n.º 1
0
 def source_path(self):
     path = make_path(self.root_path, 'source', filename_escape(self.name))
     mkdir_p(path)
     return os.path.realpath(path)
Ejemplo n.º 2
0
 def test_length(self):
     path = make_path(os.path.expanduser('~'), 'build')
     self.assertTrue(os.path.isabs(path))
     self.assertEqual(len(path), LENGTH)
     self.assertIn('/build/', path)
     self.assertEqual(path, make_path(os.path.expanduser('~'), 'build'))
Ejemplo n.º 3
0
 def source_path(self):
     path = make_path(self.root_path, 'source', filename_escape(self.name))
     mkdir_p(path)
     return os.path.realpath(path)