Closed martinrioux closed 1 year ago
Using os.getlogin() doesn't work with VS Code terminals since they are non controlling terminal (child of a process). Using getpass.getuser() uses environment variables and works with both controlling and non controlling terminals.
Using os.getlogin() doesn't work with VS Code terminals since they are non controlling terminal (child of a process). Using getpass.getuser() uses environment variables and works with both controlling and non controlling terminals.