# open locked settings file, then output if we get the lock
# open locked settings file, then output if we get the lock
(f,lock)=self.locked_open(settings_fullname,
(f,lock)=self.locked_open(settings_fullname,
mode="w")
mode="w")
iflock:
iflockandf:
self.verbose_print(
self.verbose_print(
"Writing settings to {}".format(settings_fullname),
"Writing settings to {}".format(settings_fullname),
self.grid_options["verbosity"],
self.grid_options["verbosity"],
1,
1,
)
)
iff:
json.dump(
json.dump(
all_info_cleaned,
all_info_cleaned,
f,
f,
indent=indent,
indent=indent,
default=binaryc_json_serializer,
default=binaryc_json_serializer,
ensure_ascii=ensure_ascii
ensure_ascii=ensure_ascii
)
)
self.locked_close(f,lock)
lock.unlock()
returnsettings_fullname
returnsettings_fullname
else:
else:
msg="Exporting all info without passing a value for `outfile` requires custom_options['data_dir'] to be present. That is not the cause. Either set the `data_dir` or pass a value for `outfile` "
msg="Exporting all info without passing a value for `outfile` requires custom_options['data_dir'] to be present. That is not the cause. Either set the `data_dir` or pass a value for `outfile` "