[Qgis-user] run python script in win command shell - from QGIS plugin
Torsten Lange
torsten.lange at mail.de
Mon Mar 30 04:57:56 PDT 2015
Hi,
I would like to start a python script from my QGIS plugin using the Windows command shell. But nothing happens... :-/
If run Python in a Windows command shell, this 3-liner of code actually works:
import subprocess
a = "start python " + r"C:\path\to\myscript.py"
subprocess.call(a, shell=True)
Any suggestions how to do it?
Thanks, Torsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150330/bc610232/attachment.html>
More information about the Qgis-user
mailing list