I created a change-content trigger to run a Python script every time a user submits a changelist. The script takes the change number as input and then retrieves the file location and contents. When I run the script on its own (i.e
python myScript.py) it works just fine. But when it is run via the trigger I get an error that says 'Perforce password (P4PASSWD) invalid or unset.'
The line of code in the script that triggers this is
fileCmd = "p4 -G files @=" + change_nbr content = os.popen(fileCmd, 'r')
Any help is appreciated.