changed to subprocess for python3 generation of art

This commit is contained in:
JesseBot 2019-01-11 11:10:12 +00:00
parent 8a42243083
commit 097a96e6a1

View file

@ -3,6 +3,7 @@
# 1/7/19 -- 2019? D:
import argparse
import datetime
import subprocess
import sqlite3
@ -29,7 +30,12 @@ def add_new_band(band):
conn.close()
# create the band art!
generate_band_art(band)
bashCommand = './generate_band_art.py --band "{0}"'.format(band)
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
log.info(output)
if error:
log.error(error)
# uh, idunno
return "Success"