The command gh auth login --with-token<ghKeysconfig in the terminal works fine.
Here, ghKeysconfig is the file.
But when I use my python script with GitPython as follows
gLocal = git.Git("ansible")
authenticate_gh = gLocal.execute(["gh","auth","login","--with-token","<ghKeysconfig"])
It shows this error -
Cmd('gh') failed due to: exit code(1)
cmdline: gh auth login --with-token <ghKeysconfig
stderr: 'accepts 0 arg(s), received 1'