Dear yogeshgokul,
Thank you !
I have ever set the env like : env <<"PATH = /home/azhang/env/tool.env" ,
but the result is same. Why?
Dear yogeshgokul,
Thank you !
I have ever set the env like : env <<"PATH = /home/azhang/env/tool.env" ,
but the result is same. Why?
Setting PATH before running QProcess has little sense. What are you trying to obtain this way? Because the only thing I can think about is that you'll be running bash to execute a script that runs some other programs which are not in the system path - but then you could have set that path directly in the script itself.
Besides, "/home/azhang/env/tool.env" doesn't look like a directory name, it's more likely a file, so setting it to PATH doesn't make sense.
The space either side of the "=" sign may cause issues.I have ever set the env like : env <<"PATH = /home/azhang/env/tool.env" ,
but the result is same. Why?is good andQt Code:
env << "TMPDIR=C:\\MyApp\\temp";To copy to clipboard, switch view to plain text modeis probably not.Qt Code:
env << "TMPDIR = C:\\MyApp\\temp";To copy to clipboard, switch view to plain text mode
Bookmarks