The function needs a project directory that contains the website
directory with the scripts to be executed. The scripts will be run
- using php_cgi. Query parameters can be addd as named arguments.
+ using php_cgi. Query parameters can be added as named arguments.
Returns the exit code of the script.
"""
check=False)
if proc.returncode != 0 or proc.stderr:
- log.error(proc.stderr.decode('utf-8').replace('\\n', '\n'))
+ if proc.stderr:
+ log.error(proc.stderr.decode('utf-8').replace('\\n', '\n'))
+ else:
+ log.error(proc.stdout.decode('utf-8').replace('\\n', '\n'))
return proc.returncode or 1
result = proc.stdout.decode('utf-8')