Make the base path an absolute path.
[matthijs/upstream/mobilegtd.git] / src / config / defaultconfig.py
index 0b032433293082a2bd67670c212a6efa4a4d83c8..afa0f7e911069f0ea330e2372f9556f263ac98c7 100644 (file)
@@ -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"