Can you also let me know how I can run the same thing through python console?
I have to use Jug in Qgis.so I'm currently executing jug like this:
from subprocess import Popen, PIPE import shlex process = Popen(shlex.split("jug execute '/home/jaideep.gedi.17cse/qgis/test.py'"), shell=False, universal_newlines=True,stdin=PIPE, stdout=PIPE, stderr=PIPE ) output, error = process.communicate(); print (output);
As qgis only provide its console, to handle the qgis project via python. So this is the only option I have which is running through the console.
Please suggest some way!
Can you also let me know how I can run the same thing through python console?I have to use Jug in Qgis.
so I'm currently executing jug like this:
from subprocess import Popen, PIPE import shlex process = Popen(shlex.split("jug execute '/home/jaideep.gedi.17cse/qgis/test.py'"), shell=False, universal_newlines=True,stdin=PIPE, stdout=PIPE, stderr=PIPE ) output, error = process.communicate(); print (output);
/home/jaideep.gedi.17cse/qgis/test.py'])
--You received this message because you are subscribed to the Google Groups "jug-users" group.To unsubscribe from this group and stop receiving emails from it, send an email to jug-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jug-users/ffd4d832-1876-4b64-820a-7ae62b070d30%40www.fastmail.com.
That should work, but so should the following:
import jug
jug.jug.main(['execute', '/home/jaideep.gedi.17cse/qgis/test.py'])
--You received this message because you are subscribed to the Google Groups "jug-users" group.To unsubscribe from this group and stop receiving emails from it, send an email to jug-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jug-users/2c820be0-803d-401a-9641-9e33c89232c1o%40googlegroups.com.