From 27daffefe27eb6b66b51d705f28892752340082a Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Fri, 9 Mar 2018 19:18:55 +0100 Subject: [PATCH] reverted the 3 previous commits ;), (Danny laughs at me), and using subprocess.call() now to let the bot generate the website --- streambot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streambot.py b/streambot.py index 1e0d891..fb1f857 100644 --- a/streambot.py +++ b/streambot.py @@ -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)