From: Matthijs Kooijman Date: Fri, 14 Aug 2009 18:00:11 +0000 (+0200) Subject: Make the base path an absolute path. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=573aa2fe332293b1a645071a6cf46481b08b32fd;p=matthijs%2Fupstream%2Fmobilegtd.git Make the base path an absolute path. This fixes loading of files when running on systems where "C:\..." is not an absolute path. --- 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"