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

@ -262,8 +262,7 @@ def process_article(post_uri, Force):
# No Error... # No Error...
#------------ #------------
# Temp post file for this article to use with wip action # Create (file).wip for this article to use with wip argument
# Set
global post_tmp global post_tmp
post_tmp = '%s%s.wip'%(domain.domain_db, curr_post_ID) 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
create_DB(curr_post_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 # # Put file in strings => headers, article #

View File

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