[pitivi] project: Don't use gio to check for the existence of a file on save
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project: Don't use gio to check for the existence of a file on save
- Date: Sun, 2 Sep 2012 04:00:24 +0000 (UTC)
commit c04b445d10fea40965b26ddc9cb093605bb922cc
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Wed Aug 8 22:45:10 2012 -0400
project: Don't use gio to check for the existence of a file on save
pitivi/project.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index f33cad8..83a6259 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -27,7 +27,6 @@ import os
import ges
import gst
import gtk
-import gio
import gobject
import tarfile
@@ -279,10 +278,7 @@ class ProjectManager(Signallable, Loggable):
_("Cannot save with this file format."))
return
- # FIXME Using query_exist is not the best thing to do, but makes
- # the trick for now
- file = gio.File(uri)
- if overwrite or not file.query_exist():
+ if overwrite or not os.path.exists(path_from_uri(uri)):
formatter.set_sources(project.medialibrary.getSources())
saved = formatter.save_to_uri(project.timeline, uri)
if saved:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]