From 6db1494f9c9988e16ecb3f83417c6bf9a79b3d22 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 21 Aug 2008 20:10:28 -0700 Subject: [PATCH] Calling change_to_main_dir() earlier so it actually influences config/Desktop.py, which calls os.getcwd(). --- luminotes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luminotes.py b/luminotes.py index 2af2c64..f91c88e 100755 --- a/luminotes.py +++ b/luminotes.py @@ -28,6 +28,8 @@ def change_to_main_dir(): def main( args ): + change_to_main_dir() + cherrypy.config.update( Common.settings ) if args and "-d" in args: @@ -65,8 +67,6 @@ def main( args ): socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS ) - change_to_main_dir() - database = Database( host = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_host" ), ssl_mode = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_ssl_mode" ),