How does Creator change the working directory?
Qt Creator and other tools
3
Posts
2
Posters
2.7k
Views
1
Watching
-
wrote on 27 Mar 2012, 02:05 last edited by
In run settings, the user is given the opportunity to change the working directory of the program to be run.
How does this happen?
I ask because I'm going to have to start putting together some test scripts for multiple programs, where the output of prog1 is the input to prog2, etc. If I can somehow perform this magic in bash, it could add a lot of flexibility to my tests.
Thanks.
-
wrote on 27 Mar 2012, 06:31 last edited by
No magic involved: Creator does a "cd /working/directory" before running the application.
-
wrote on 27 Mar 2012, 13:25 last edited by
Oh, OK...so then it invokes the program with a relative (or absolute) pathname? Makes sense. Thanks...
3/3