[transmageddon] Add extra check for non-existant Videos directory
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: svn-commits-list gnome org
- Subject: [transmageddon] Add extra check for non-existant Videos directory
- Date: Tue, 28 Jul 2009 13:45:11 +0000 (UTC)
commit 26030754c4a8eb2b59dca25a16d7db9ad5444a88
Author: Christian Schaller <christian schaller collabora co uk>
Date: Tue Jul 28 14:44:59 2009 +0100
Add extra check for non-existant Videos directory
src/transmageddon.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index 36081e5..91e2cea 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -159,9 +159,11 @@ class TransmageddonUI (gtk.glade.XML):
if 'get_user_special_dir' in glib.__dict__:
self.videodirectory = glib.get_user_special_dir(glib.USER_DIRECTORY_VIDEOS)
else:
- print "XDG video directory not available"
- self.videodirectory = os.getenv('HOME')
-
+ print "XDG video directory not available"
+ self.videodirectory = os.getenv('HOME')
+ if self.videodirectory is None:
+ print "XDG video directory not available"
+ self.videodirectory = os.getenv('HOME')
CheckDir = os.path.isdir(self.videodirectory)
if CheckDir == (False):
os.mkdir(self.videodirectory)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]