Skip to content

Commit 61234e1

Browse files
committed
use the full path of the custom cherrypy config file
1 parent d517125 commit 61234e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/zimonGrafanaIntf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,10 @@ def updateCherrypyConf(args):
634634
'log.error_file': errorlog}}
635635

636636
cherrypy.config.update(globalConfig)
637-
cherrypy.config.update('./mycherrypy.conf')
637+
638+
dirname, filename = os.path.split(os.path.abspath(__file__))
639+
customconf = os.path.join(dirname, 'mycherrypy.conf')
640+
cherrypy.config.update(customconf)
638641

639642

640643
def updateCherrypySslConf(args, certFile, keyFile):

0 commit comments

Comments
 (0)