[pitivi] previewers: hardcoded path manipulations are bad.
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] previewers: hardcoded path manipulations are bad.
- Date: Sat, 15 Nov 2014 10:31:47 +0000 (UTC)
commit 370a7cbd47f2e097d39f8a2b570279af2c0f7027
Author: Mathieu Duponchelle <mathieu duponchelle opencreed com>
Date: Fri May 2 18:01:09 2014 +0200
previewers: hardcoded path manipulations are bad.
And I should feel bad.
https://bugzilla.gnome.org/show_bug.cgi?id=739251
pitivi/timeline/previewers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 8f8b4e3..bff2401 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -771,7 +771,7 @@ class AudioPreviewer(Clutter.Actor, PreviewGenerator, Zoomable, Loggable):
self.log('Preparing waveforms for "%s"' % filename_from_uri(self._uri))
filename = hash_file(Gst.uri_get_location(self._uri)) + ".wave"
cache_dir = get_dir(os.path.join(xdg_cache_home(), "waves"))
- filename = cache_dir + "/" + filename
+ filename = os.path.join(cache_dir, filename)
if os.path.exists(filename):
self.samples = pickle.load(open(filename, "rb"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]