def setUpModule():
# Backup local config file if it exists
if os.path.exists(local_cfg):
os.rename(local_cfg, local_cfg + '.bak')
# Re-read the configs
girder_worker.config = ConfigParser()
_cfgs = ('worker.dist.cfg', 'worker.local.cfg')
girder_worker.config.read(
[os.path.join(girder_worker.PACKAGE_DIR, f) for f in _cfgs])
评论列表
文章目录