Made a change to the subprocess call to hopefully stop the json error until I can figure that out. Also added the templates directory to the Dockerfile
This commit is contained in:
5
main.py
5
main.py
@@ -61,8 +61,9 @@ def download():
|
||||
|
||||
# os.system(execute)
|
||||
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
||||
book['output'] = exec_command.communicate()
|
||||
print(exec_command.args)
|
||||
# book['output'] = exec_command.communicate()
|
||||
exec_command.communicate()
|
||||
book['command'] = exec_command.args
|
||||
|
||||
updated.append(book)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user