[meld] Set vcview working directory to "." if otherwise empty (closes bgo#601580)
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [meld] Set vcview working directory to "." if otherwise empty (closes bgo#601580)
- Date: Wed, 11 Nov 2009 23:02:29 +0000 (UTC)
commit 7e25f3fbc46fd5f897e6770f208e74d1085fc121
Author: Martyn Thomas <martyn thomas gmail com>
Date: Thu Nov 12 08:56:42 2009 +1000
Set vcview working directory to "." if otherwise empty (closes bgo#601580)
meld/vcview.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 4ed06d5..b471354 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -47,7 +47,7 @@ def _commonprefix(files):
if len(files) != 1:
workdir = misc.commonprefix(files)
else:
- workdir = os.path.dirname(files[0])
+ workdir = os.path.dirname(files[0]) or "."
return workdir
################################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]