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
It might be worth adding some notes to the online documentation to explain how to automate adding some git information to command logs.
Install gitpython
$ conda install gitpython
Use sys.path[0] (which returns the directory your script is in) to get the repository directory. (If your script isn't in the top level directory of the repo, you might need to use something like repo_dir = '/'.join(script_dir.split('/')[:-1])):
It might be worth adding some notes to the online documentation to explain how to automate adding some git information to command logs.
gitpython
sys.path[0]
(which returns the directory your script is in) to get the repository directory. (If your script isn't in the top level directory of the repo, you might need to use something likerepo_dir = '/'.join(script_dir.split('/')[:-1])
):The text was updated successfully, but these errors were encountered: