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" ),