How to locate input file on Run?

86 Views Asked by At

Using GNAT Studio I have a project with a Main and an input file. The latter is next to the project file. I want to pass the path to the input file as argument to Main Run. How to do that?

(In Visual Studio I'd add it to the project and set "Copy to output directory", then locate it relative the output dir.)

1

There are 1 best solutions below

0
Andreas On

I ended up putting the output files in the project directory and run Main from there:

for Exec_Dir use ".";