You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's nothing specific to Python in the implementation, so it could work for any kind of program, but the implementation assumes Python. Simply replacing https://github.com/lfwa/carbontracker/blob/master/carbontracker/cli.py#L23 with subprocess.run([args.script], check=True) would fix this (with the caveat that the script needs to be marked as executable and start with e.g. #!/usr/bin/env python).
The text was updated successfully, but these errors were encountered:
Thanks for bringing this to our attention. We've addressed your points in patch v1.2.1. You can now use the tool with arbitrary commands, like: carbontracker myscript arg1 arg2 --log_dir ./logs.
There's nothing specific to Python in the implementation, so it could work for any kind of program, but the implementation assumes Python. Simply replacing https://github.com/lfwa/carbontracker/blob/master/carbontracker/cli.py#L23 with
subprocess.run([args.script], check=True)
would fix this (with the caveat that the script needs to be marked as executable and start with e.g.#!/usr/bin/env python
).The text was updated successfully, but these errors were encountered: