mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
changed to subprocess for python3 generation of art
This commit is contained in:
parent
8a42243083
commit
097a96e6a1
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue