target: all. fix with wip action again

This commit is contained in:
Cyrille L 2023-03-02 16:16:42 +01:00
parent f4bcacdac6
commit ba161305eb
2 changed files with 8 additions and 11 deletions

View File

@ -23,16 +23,12 @@ def tyto(target):
noinfos = False
# Show Version
try:
if os.path.exists('/usr/bin/tyto'):
tytobin = open('/usr/bin/tyto').read()
for line in tytobin.rsplit('\n'):
if line.startswith('# Version:'):
print(line)
break
except:
noinfo = True
print(':< No /usr/bin/tyto')
tytobin = open('/usr/bin/tyto').read()
for line in tytobin.rsplit('\n'):
if line.startswith('# Version:'):
print(line)
break
# Show domains list
try:

View File

@ -44,7 +44,8 @@ def manage_wip(target):
if post_db.endswith('.conf'):
# Load DB
post_db = '%s%s'%(db.articles_db, post_db)
args.target = 'index.tyto'
exec(open(post_db).read(),globals())
args.target = post_src.rsplit('%s/'%db.in_dir)[1]
importlib.reload(db)
print(':> [%s] | %s'%(db.title, db.post_src))
if not db.hash_wip: continue