From 50cc20307dda905fdfc4cb5bb13dd64e54dd70a7 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Thu, 1 Jul 2021 09:51:42 +0200 Subject: [PATCH] correction on del_zephir --- scripts/module/del_zephir.zephir | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/module/del_zephir.zephir b/scripts/module/del_zephir.zephir index 4a439ba..00c6fe8 100644 --- a/scripts/module/del_zephir.zephir +++ b/scripts/module/del_zephir.zephir @@ -1,3 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- from zephir.lib_zephir import * import os, shutil from creole.config import eoledirs, distrib_dir, dicos_dir @@ -19,9 +21,9 @@ stats_service = u'z_stats' if os.path.isfile('/var/run/z_stats.pid'): stats_running = True try: - from zephir.zephir_conf import zephir_conf - except: - zephir_conf = None + from zephir.zephir_conf import zephir_conf +except: + zephir_conf = None if stats_running: @@ -39,7 +41,7 @@ if eole_module != 'zephir': try: os.unlink("%s/zephir_conf/zephir_conf.py" % zephir_path) except: - print("\n !! le fichier %s/zephir_conf/zephir_conf.py n'a pas pu être supprimé !!\n" % zephir_d_path) + print("\n !! le fichier %s/zephir_conf/zephir_conf.py n'a pas pu être supprimé !!\n" % zephir_path) try: os.unlink("%s/zephir_conf/zephir_conf.pyc" % zephir_path) try: