reverted the 3 previous commits ;), (Danny laughs at me), and using subprocess.call() now to let the bot generate the website
This commit is contained in:
parent
cdf060c488
commit
27daffefe2
@ -3,7 +3,7 @@ import logging
|
||||
import argparse
|
||||
from sleekxmpp import ClientXMPP
|
||||
from sleekxmpp.exceptions import IqError, IqTimeout
|
||||
import os
|
||||
import os, subprocess
|
||||
import urllib
|
||||
import datetime
|
||||
import ssl
|
||||
@ -85,7 +85,7 @@ class ArchivistBot(ClientXMPP):
|
||||
urllib.urlretrieve(msg['oob']['url'], targetFile, context=ctx)
|
||||
logging.getLogger().debug("saved to %s" % targetFile)
|
||||
|
||||
cmd = 'pelican /home/gitea/clones/varia/varia.website/content/ -o /var/www/stream/'
|
||||
cmd = 'subprocess.call(["make","publish"], cwd="/home/gitea/clones/varia.website/")'
|
||||
print(cmd)
|
||||
os.system(cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user