Executes the given python script and returns the standardoutput. The Globals known from python macros are not accessible in this context. Neighter macro or page nor the globals known from python macros are accessible in this context. Only stuff we initialized in site.py can be used.

Namespace: umbraco
Assembly:   umbraco (in umbraco)
Version: 1.0.2698.41384

Syntax

Visual Basic (Declaration)
Public Shared Function PythonExecuteFile ( _
	file As String _
) As String
C#
public static string PythonExecuteFile (
	string file
)
Visual C++
public:
static String^ PythonExecuteFile (
	String^ file
)

Parameters

file
System.String
The filename of the python script including the extension .py

Return Value

Returns the StandardOutput