system.util.getProjectName
This function is used in Python Scripting.
Descriptionβ
Returns the name of the project that is currently being run. When run from the Gateway scope from a resource that originates from a singular project (reports, SFCs, etc.), will return that resources project.
When called from a scope that does not have an associated project (a Tag Event Script), the function will return the name of the Gateway scripting project. If a Gateway scripting project has not been configured, then returns an empty string.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.util.getProjectName()
Parametersβ
Nothing
Returnsβ
String - The name of the currently running project.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Example #1
# This code would display the name of the currently running project
system.gui.messageBox("You are running project: %s" % system.util.getProjectName())