misc: always use normal config parser, with no interpolation (#88571)
gitea/wcs/pipeline/head This commit looks good
Details
gitea/wcs/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e0857ce653
commit
1dcc430503
|
@ -427,7 +427,7 @@ class Command(TenantCommand):
|
|||
|
||||
def configure_site_options(self, current_service, pub, ignore_timestamp=False):
|
||||
# configure site-options.cfg
|
||||
config = configparser.RawConfigParser()
|
||||
config = configparser.ConfigParser(interpolation=None)
|
||||
site_options_filepath = os.path.join(pub.app_dir, 'site-options.cfg')
|
||||
if os.path.exists(site_options_filepath):
|
||||
config.read(site_options_filepath)
|
||||
|
|
|
@ -421,7 +421,7 @@ class QommonPublisher(Publisher):
|
|||
return string
|
||||
|
||||
def load_site_options(self):
|
||||
self.site_options = configparser.ConfigParser()
|
||||
self.site_options = configparser.ConfigParser(interpolation=None)
|
||||
site_options_filename = os.path.join(self.app_dir, 'site-options.cfg')
|
||||
if not os.path.exists(site_options_filename):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue