March 27, 2012

mzimmers mzimmers
Lab Rat
529 posts

how does Creator change the working directory?

 

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.

2 replies

March 27, 2012

Tobias Hunger Tobias Hunger
Area 51 Engineer
3383 posts

No magic involved: Creator does a “cd /working/directory” before running the application.

March 27, 2012

mzimmers mzimmers
Lab Rat
529 posts

Oh, OK…so then it invokes the program with a relative (or absolute) pathname? Makes sense. Thanks…

 
  ‹‹ Accessing Qt Creator’s code-model in a plug-in      Error coding system messages ››

You must log in to post a reply. Not a member yet? Register here!