[pitivi] application: Do not take scenario URI as project URI



commit a47258c69b55e176e294950338126ddc6bb49a22
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri Feb 13 16:43:40 2015 +0100

    application: Do not take scenario URI as project URI

 pitivi/application.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 01a819e..d8874d7 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -228,9 +228,9 @@ class Pitivi(Gtk.Application, Loggable):
 
     def _setScenarioFile(self, uri):
         if 'PITIVI_SCENARIO_FILE' in os.environ:
-            uri = quote_uri(os.environ['PITIVI_SCENARIO_FILE'])
             if uri:
                 project_path = path_from_uri(uri)
+            uri = quote_uri(os.environ['PITIVI_SCENARIO_FILE'])
         else:
             cache_dir = get_dir(os.path.join(xdg_cache_home(), "scenarios"))
             scenario_name = str(time.strftime("%Y%m%d-%H%M%S"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]