target: all. fix with wip action again
This commit is contained in:
parent
f4bcacdac6
commit
ba161305eb
|
@ -23,16 +23,12 @@ def tyto(target):
|
||||||
noinfos = False
|
noinfos = False
|
||||||
|
|
||||||
# Show Version
|
# Show Version
|
||||||
try:
|
|
||||||
if os.path.exists('/usr/bin/tyto'):
|
|
||||||
tytobin = open('/usr/bin/tyto').read()
|
tytobin = open('/usr/bin/tyto').read()
|
||||||
for line in tytobin.rsplit('\n'):
|
for line in tytobin.rsplit('\n'):
|
||||||
if line.startswith('# Version:'):
|
if line.startswith('# Version:'):
|
||||||
print(line)
|
print(line)
|
||||||
break
|
break
|
||||||
except:
|
|
||||||
noinfo = True
|
|
||||||
print(':< No /usr/bin/tyto')
|
|
||||||
|
|
||||||
# Show domains list
|
# Show domains list
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -44,7 +44,8 @@ def manage_wip(target):
|
||||||
if post_db.endswith('.conf'):
|
if post_db.endswith('.conf'):
|
||||||
# Load DB
|
# Load DB
|
||||||
post_db = '%s%s'%(db.articles_db, post_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)
|
importlib.reload(db)
|
||||||
print(':> [%s] | %s'%(db.title, db.post_src))
|
print(':> [%s] | %s'%(db.title, db.post_src))
|
||||||
if not db.hash_wip: continue
|
if not db.hash_wip: continue
|
||||||
|
|
Loading…
Reference in New Issue