<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 23 Nov 2018 at 09:04, <<a href="mailto:kristof.mulier@telenet.be">kristof.mulier@telenet.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt;color:#000000"><div>Dear PyQt developers/users,</div><div><br></div><div>I'm using a <span style="font-family:"lucida console",sans-serif;background-color:rgb(255,255,153)">QProcess()</span>-instance to execute commands. The <span style="background-color:rgb(255,255,153)">QProcess()</span>-instance automatically inherits the standard environment, for example the <span style="background-color:rgb(255,255,153)">PATH</span> environment variable. So if the command is an executable, it can only find it if it's in the <span style="background-color:rgb(255,255,153)">PATH</span> variable.</div><div>Once the <span style="color:rgb(0,0,0);font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;font-family:"lucida console",sans-serif;background-color:rgb(255,255,153)">QProcess()</span><span style="color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">-instance exists, I just can't add anything to its <span style="background-color:rgb(255,255,153)">PATH</span> variable. Well, actually I can, but it doesn't have any effect. I've explained everything in great details on StackOverflow:</span></div><div><span style="color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none"><br></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px"><a href="https://stackoverflow.com/questions/53438065/how-can-i-add-a-path-to-the-qprocess-path-environment-variable-pyqt5-on-python" target="_blank">https://stackoverflow.com/questions/53438065/how-can-i-add-a-path-to-the-qprocess-path-environment-variable-pyqt5-on-python</a></span><br></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px"><br></span></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px">I would be very thankful if you can have a look at it :-)</span></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px"><br></span></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px">Kind greetings,</span></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px"><br></span></span></div><div><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline!important"><span style="font-size:13.3333px">Kristof Mulier</span></span></div></div></div>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div><br clear="all"><div style="font-family:tahoma,sans-serif" class="gmail_default">I have posted a comment at <b>SO</b>:</div><div style="font-family:tahoma,sans-serif" class="gmail_default"></div><div style="font-family:tahoma,sans-serif" class="gmail_default">
<div class="gmail-comment-text gmail-js-comment-text-and-form">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-comment-body" style="display:block">
<span class="gmail-comment-copy">I think you're misunderstanding. You are trying to affect the <code>PATH</code> environment which gets passed to the sub-process. What you <i>want</i> to do is simply alter the <code>PATH</code> environment in the <i>parent</i>,
it is that which needs to find your executable before the sub-process
can get spawned. And if you want to, then change your parent's <code>PATH</code> back <i>after</i> the sub-process has been spawned</span></div></blockquote></div></div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kindest,</span></div><div><span style="font-family:tahoma,sans-serif">Jonathan</span></div></div></div></div></div></div>