fix smileys in stdout

This commit is contained in:
Cyrille L 2022-11-21 16:07:03 +01:00
parent ceec24105c
commit 0ee4994d3f
2 changed files with 10 additions and 13 deletions

View File

@ -68,7 +68,7 @@ def post_IDs(file_post):
# From argument file_post
# Set WEB link prefix. Count / in uri
global weburi
slash = 0
slash = 0
weburi = ''
for s in file_post:
@ -262,8 +262,7 @@ def process_article(post_uri, Force):
# No Error...
#------------
# Temp post file for this article to use with wip action
# Set
# Create (file).wip for this article to use with wip argument
global post_tmp
post_tmp = '%s%s.wip'%(domain.domain_db, curr_post_ID)
@ -279,7 +278,7 @@ def process_article(post_uri, Force):
# Create DB
create_DB(curr_post_db)
print(':) Article is Ok and ready to "tyto wip"')
print(':D Article is Ok and ready to "tyto wip"')
#=========================================#
# Put file in strings => headers, article #

View File

@ -62,24 +62,22 @@ except:
domains_db = open(tyto_domains,'r').read()
# Get user domain configuration file #
# Get user domain configuration file
# If exists, set to True, and exec
try: # os.path.exists(conf_domain):
exec(open(conf_domain).read())
datas_domain = open(conf_domain, "r").read()
if domain_active:
print(':) Activated domain: "%s"'%domain_name)
else:
print(':/ Not activated domain in',conf_domain)
if domain_active: print(':D Activated domain: "%s"'%domain_name)
else : print(':/ Not activated domain in',conf_domain)
except:
print(':( Unused domain file:', conf_domain)
print(':< Unused domain file:', conf_domain)
#=======#
# Tools #
#=======#--------------------------------------------------------------
#============================#
# Append new value to a file #
#----------------------------#
#===========================#
# Append new line to a file #
#---------------------------#
def append_f(f,line_val):
file = open(f, "a")
file.write('%s\n'%line_val)