From 573aa2fe332293b1a645071a6cf46481b08b32fd Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 14 Aug 2009 20:00:11 +0200 Subject: [PATCH] Make the base path an absolute path. This fixes loading of files when running on systems where "C:\..." is not an absolute path. --- src/config/defaultconfig.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/defaultconfig.py b/src/config/defaultconfig.py index 0b03243..afa0f7e 100644 --- a/src/config/defaultconfig.py +++ b/src/config/defaultconfig.py @@ -1,7 +1,12 @@ +import os + main_config_file = 'C:/System/Data/mobile_gtd.cfg' default_configuration = {"screen":"normal", -"path":"C:/Data/GTD/", +# Make the path absolute. This is a no-op on Symbian, since it is +# already absolute, but helps when running on other systems (some of the +# code relies on this path being absolute). +"path": os.path.abspath("C:/Data/GTD/"), "inactivity_threshold":"7", "read_sms":"1", "action_editor":"form" -- 2.30.2