fix smileys in stdout
This commit is contained in:
parent
ceec24105c
commit
0ee4994d3f
|
@ -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 #
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue