Commit 5f20c05a authored by renzo's avatar renzo

beta 1.2

parent 865ad4bc
......@@ -13,7 +13,7 @@ logs_expiration = 7 # Measured in days
# 1.1 - MESSAGES
processing_error_msg = "El script de procesamiento ha fallado, chequear el archivo de log"
# 1.2 -
# 1.2 - PATHS
root_path = "/home/renzo/Desktop/test"
nctoolbox_path = ""
matlab_scripts = "/home/renzo/Desktop/automatizacion-de-bajadas/process/matlab_scripts"
......@@ -21,7 +21,7 @@ logs_path = root_path + "/logs"
tmp_path = root_path + "/tmp"
output_root_path = root_path + "/output"
# 2 - ARGUMENTS
# 2 - MAIN SCRIPT ARGUMENTS
args = {}
args["day"] = {}
......@@ -81,5 +81,7 @@ copernicus["message"] = "Este mensaje se envía únicamente cuando el script int
+ " veces a lo largo de " + str(mins/60) + " horas. No está claro si puede haber pérdida de datos."
# IGNORE THIS PART
for path in [root_path, matlab_scripts, logs_path, tmp_path, output_root_path]:
current_module = __import__(__name__)
output_dirs = [getattr(current_module, source)["output_path"] for source in sources]
for path in [root_path, matlab_scripts, logs_path, tmp_path] + output_dirs:
Path(path).mkdir(parents=True, exist_ok=True)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment