From c8cd77113853ef35f4ed97fc7a6edac21df20b0d Mon Sep 17 00:00:00 2001 From: Yader Velásquez Date: Mon, 27 Dec 2010 22:35:59 +0000 Subject: new toolbar --- (limited to 'archivo.py') diff --git a/archivo.py b/archivo.py index 28f47fe..be4b5a4 100644 --- a/archivo.py +++ b/archivo.py @@ -69,18 +69,17 @@ def crear_modelo(indice, path): def abrir_efemeride(path): '''open the ephemeris file and return a data dictionary''' path = path + '/data/efemerides.pkl' - if not os.path.exists(path): _log.debug('THE FILE EFEMERIDES DID NOT EXISTS') archivo = open(path, 'wb') texto = {} pickle.dump(texto, archivo) - + archivo.close() else: - #_log.debug('THE FILE EXISTS') + _log.debug('THE FILE EPHEMERIS EXISTS') archivo = open(path, 'rb') texto = pickle.load(archivo) - + archivo.close() return texto def guardar_dato(indice, contenido, categoria, bolean, path): -- cgit v0.9.1