[Robotics] Relative file path in project.

I am working on an automation, and currently, I have data in an excel sheet on my Desktop. To access the data, I am using its absolute path:

C:\Users\...\Desktop\example.xls

However, I’d like to store this file in the project folder and access it via relative path:

\testingData\example.xls

Is this possible? If so, what’s the base folder/path?

This data is purely used for testing and is not really meant to be deployed.

@KhaledA7 If you attach this file to your project (Right-click on the project and select Add–>Existing item), then you can access this easily from an automation. If you place this in a folder, just be sure to add that to the path. To get the location of where you project is extracted to, simply call the RuntimeHost.GetProjectPath method on the Runtime tab of the Toolbox. This will return the full path to the project DLL. You can use the FileUtils.GetDirectoryName method to strip off the file name and use the CombinePaths method to put your attachment file name in there. Let me know if you’d like an example.