correction on del_zephir

This commit is contained in:
Matthieu Lamalle 2021-07-01 09:51:42 +02:00
parent d79fd7be7a
commit 50cc20307d
1 changed files with 6 additions and 4 deletions

View File

@ -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: