예제 #1
0
파일: project.py 프로젝트: cymacs/pitivi
 def setUri(self, uri):
     # FIXME support not local project
     if uri and not gst.uri_has_protocol(uri, "file"):
         # Note that this does *not* give the same result as quote_uri()
         self._uri = gst.uri_construct("file", uri)
     else:
         self._uri = uri
예제 #2
0
파일: test_cache.py 프로젝트: cymacs/pitivi
 def setUp(self):
     self.tmpfile = tempfile.NamedTemporaryFile()
     self.uri = unquote(gst.uri_construct("file", self.tmpfile.name))
     self.hash = hash_file(self.tmpfile.name)