コード例 #1
0
ファイル: config.py プロジェクト: kcrisman/binary-pkg
 def source_path(self):
     path = make_path(self.root_path, 'source', filename_escape(self.name))
     mkdir_p(path)
     return os.path.realpath(path)
コード例 #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'))
コード例 #3
0
ファイル: config.py プロジェクト: jhpalmieri/binary-pkg
 def source_path(self):
     path = make_path(self.root_path, 'source', filename_escape(self.name))
     mkdir_p(path)
     return os.path.realpath(path)