From 172d98666a1820e601285fa0854e1233cd9edfef Mon Sep 17 00:00:00 2001 From: Carmen Date: Tue, 1 Jun 2021 18:48:24 +0200 Subject: [PATCH] avoid os error --- src/openeo_grass_gis_driver/actinia_processing/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openeo_grass_gis_driver/actinia_processing/config.py b/src/openeo_grass_gis_driver/actinia_processing/config.py index 1e415c57..78d21230 100644 --- a/src/openeo_grass_gis_driver/actinia_processing/config.py +++ b/src/openeo_grass_gis_driver/actinia_processing/config.py @@ -53,9 +53,12 @@ def __init__(self): print("Could not find any config file, using default values.") return - with open(GENERATED_CONFIG, 'w') as configfile: - config.write(configfile) - print("Configuration written to " + GENERATED_CONFIG) + # commented out due to + # OSError: [Errno 30] Read-only file system + # TODO: is there a better solution to avoid this? + # with open(GENERATED_CONFIG, 'w') as configfile: + # config.write(configfile) + # print("Configuration written to " + GENERATED_CONFIG) # CONFIG if config.has_section("ACTINIA"):