Redirect Stdout Python Program

How to properly redirect stdout/stderr for a python program?

#!/bin/bash
exec /bin/bash -c "./anything.py" &> anything.log
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License