[meld/meld-1-8] Put recent data and preferences in the same folder on Windows



commit 82ca821aa66a3186004c2a90128098914939c01e
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Oct 18 06:14:46 2013 +1000

    Put recent data and preferences in the same folder on Windows
    
    That is, don't try to put them in Meld and meld. This isn't a problem
    really but the capitalisation is more consistent this way.

 meld/recent.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meld/recent.py b/meld/recent.py
index 430dc2c..051f0ec 100644
--- a/meld/recent.py
+++ b/meld/recent.py
@@ -28,6 +28,7 @@ infrastructure that that's actually what we opened.
 
 import ConfigParser
 import os
+import sys
 import tempfile
 
 from gettext import gettext as _
@@ -48,7 +49,8 @@ COMPARISON_TYPES = (TYPE_FILE, TYPE_FOLDER, TYPE_VC, TYPE_MERGE)
 
 class RecentFiles(object):
 
-    recent_path = os.path.join(glib.get_user_data_dir(), "meld")
+    recent_dirname = "Meld" if sys.platform == "win32" else "meld"
+    recent_path = os.path.join(glib.get_user_data_dir(), recent_dirname)
     recent_path = recent_path.decode('utf8')
     recent_suffix = ".meldcmp"
 


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