<div dir="ltr"><div>Using the Python console on 2.18 </div><div><br></div><div>import sys</div><div>sys.executable </div><div><br></div><div>returns</div><div><br></div><div>1) on Windows (2.18.9 32bit):</div><div><br></div><div>'C:\\PROGRA~1\\QGIS2~1.18\\<wbr>bin\\qgis-bin.exe'<br></div><div><br></div><div>which unexpectedly does not appear to be a Python interpreter</div><div><br></div><div>and</div><div><br></div><div>2) on Linux (2.18.3. 64bit)</div><div><br></div><div>'/usr/bin/python'<br></div><div><br></div><div>which does appear to be the Python interpreter in use by the console.<br></div><div><br></div><div>Is there a cross platform way to discover the Python interpreter in current use ? Would 1) considered to be a possible bug somewhere ?</div><div><br></div><div>I want to use it for</div><div><br></div><div>QProcess.startDetached(sys.<wbr>executable, args, root_folder)<br></div><div><br></div><div>Thanks,</div><div><br></div><div>-Andreas<br></div><div><br></div><div><br></div>-- <br><div class="gmail-m_504506247162704371gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div>