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:
@@ -1,6 +1,7 @@
|
|||||||
FROM python:3
|
FROM python:3
|
||||||
ADD main.py /
|
ADD main.py /
|
||||||
ADD requirements.txt /
|
ADD requirements.txt /
|
||||||
|
ADD templates /templates
|
||||||
|
|
||||||
VOLUME /download/
|
VOLUME /download/
|
||||||
|
|
||||||
|
|||||||
5
main.py
5
main.py
@@ -61,8 +61,9 @@ def download():
|
|||||||
|
|
||||||
# os.system(execute)
|
# os.system(execute)
|
||||||
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
||||||
book['output'] = exec_command.communicate()
|
# book['output'] = exec_command.communicate()
|
||||||
print(exec_command.args)
|
exec_command.communicate()
|
||||||
|
book['command'] = exec_command.args
|
||||||
|
|
||||||
updated.append(book)
|
updated.append(book)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user