Calling change_to_main_dir() earlier so it actually influences config/Desktop.py, which calls os.getcwd().
This commit is contained in:
parent
f092abee11
commit
6db1494f9c
|
@ -28,6 +28,8 @@ def change_to_main_dir():
|
||||||
|
|
||||||
|
|
||||||
def main( args ):
|
def main( args ):
|
||||||
|
change_to_main_dir()
|
||||||
|
|
||||||
cherrypy.config.update( Common.settings )
|
cherrypy.config.update( Common.settings )
|
||||||
|
|
||||||
if args and "-d" in args:
|
if args and "-d" in args:
|
||||||
|
@ -65,8 +67,6 @@ def main( args ):
|
||||||
|
|
||||||
socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS )
|
socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS )
|
||||||
|
|
||||||
change_to_main_dir()
|
|
||||||
|
|
||||||
database = Database(
|
database = Database(
|
||||||
host = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_host" ),
|
host = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_host" ),
|
||||||
ssl_mode = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_ssl_mode" ),
|
ssl_mode = cherrypy.config.configMap[ u"global" ].get( u"luminotes.db_ssl_mode" ),
|
||||||
|
|
Reference in New Issue