ericmartel/Sublime-Text-2-Perforce-Plugin — pull request #11 by sebmaynard (2012-05-03 11:39:30+00:00)
Title: Add support for specifying the P4USER, P4CLIENT etc variables in the sublime Perforce.sublime-settings

If you put things like
"P4PORT": "perforceserver.com:1666",
"P4CLIENT": "Seb.client",
"P4USER": "seb",
"P4PASSWD": "password"

in the perforce sublime preferences file, the p4 info command succeeds. I was having issues with getting it to pick up my config environment variables on Linux and this should also allow people on Windows with registry issues to fix them.