Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Reference the project location in Extension Tool
Comments
-
Hi Newbie17,
In Jython, you can use the following to get the project location.
It would be similar calls in Groovy with different syntax.
'# <<< Jython >>>
'# write the project location to the consolefrom com.parasoft.api import *
def WriteProjectLocation(input, context):
project = context.getAbsolutePathFile(" ") # get the absolute path to the project folder
projectLocation = project.getAbsolutePath()
Application.showMessage("the Application.showMessage - projectLocation is " + str(projectLocation))1 -
Thanks John Appeldorn! It works!
0