I am trying to include a *.can file in a CAPL, but I have to set the absolute path
C:\Users\myuser\canoe\simulations\projectX\Function Test\playground.can
I want to use a relative path to include it, but I am not sure what is the correct convention or if it is even posible. I have tried this so far (my CAPL is in projectX folder):
"C:\...\Function Test\playground.can
"Function Test\playground.can"
"/Function Test/playground.can"
"\Function Test \playground.can"
What is the correct way to use a relative path?
Yes, it is possible. You need to specify the path relative to your projects CANoe configuration (
*.cfg
) file. For example:if your CANoe project is in
C:\Users\myuser\canoe\simulations\projectX\