Moibe commited on
Commit
18739cd
·
1 Parent(s): e2cdc1b

Crea dir antes

Browse files
Files changed (1) hide show
  1. config_creator.py +1 -0
config_creator.py CHANGED
@@ -5,6 +5,7 @@ def creaConfigFirestore():
5
 
6
  # Paso 1: Obtener la variable de entorno
7
  firestore_config_str = os.getenv('configuracion')
 
8
 
9
  if firestore_config_str is None:
10
  print("Error: La variable de entorno 'configuracion' no está definida.")
 
5
 
6
  # Paso 1: Obtener la variable de entorno
7
  firestore_config_str = os.getenv('configuracion')
8
+ os.makedirs(os.path.dirname("code/archivos/config.json"), exist_ok=True)
9
 
10
  if firestore_config_str is None:
11
  print("Error: La variable de entorno 'configuracion' no está definida.")