Dans la série suppression des liens symboliques : /usr/scripts/lib devient /usr/scripts/cranslib
* Comme ça c'est plus clair que c'est un truc custom crans * Le lien symbolique /usr/scripts/gestion/crans/ est retiré. D'autres suivront.
This commit is contained in:
parent
c57795f23b
commit
10275229a1
35 changed files with 20 additions and 29 deletions
|
@ -39,7 +39,7 @@ import shutil
|
|||
import syslog
|
||||
import stat
|
||||
sys.path.append('/usr/scripts/')
|
||||
from lib.utils import QuoteForPOSIX as escapeForShell
|
||||
from cranslib.utils import QuoteForPOSIX as escapeForShell
|
||||
def __init__():
|
||||
pass
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import commands
|
|||
import string
|
||||
import random
|
||||
sys.path.append("/usr/scripts/")
|
||||
import lib.utils.files
|
||||
import cranslib.utils.files
|
||||
# #############################################################
|
||||
# CONSTANTES
|
||||
# #############################################################
|
||||
|
@ -132,7 +132,7 @@ def list_code():
|
|||
files = os.listdir(CODES_DIR)
|
||||
code_list = []
|
||||
for aCode in files:
|
||||
age = lib.utils.files.ageOfFile(os.path.join(CODES_DIR, aCode ) )
|
||||
age = cranslib.utils.files.ageOfFile(os.path.join(CODES_DIR, aCode ) )
|
||||
content = read_code_file(aCode)
|
||||
code_list.append((aCode, age, content ) )
|
||||
return code_list
|
||||
|
@ -161,5 +161,5 @@ def menage():
|
|||
for aFile in fileList:
|
||||
aFilePath = os.path.join(CODES_DIR, aFile)
|
||||
if os.path.isfile(aFilePath):
|
||||
if lib.utils.files.fileIsOlderThan(aFilePath, days=1):
|
||||
if cranslib.utils.files.fileIsOlderThan(aFilePath, days=1):
|
||||
os.remove(aFilePath)
|
||||
|
|
|
@ -35,7 +35,7 @@ sys.path.append('/usr/scripts/gestion')
|
|||
from config import impression as config_impression
|
||||
from commands import getstatusoutput
|
||||
sys.path.append('/usr/scripts/')
|
||||
from lib.utils import logs
|
||||
from cranslib.utils import logs
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
# ######################################################## #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue