[PyQt] QProcess problems/question
Gustavo A. Díaz
gustavo.diaz at gmail.com
Wed Jun 18 01:11:23 BST 2008
Ok Thanks, this is a start. Now is more clear.
I will do some test tonite.
The idea is, an application (small) to set the global enviroment proxy (as
we could do in bash with export bla bla:8080) but with a GUI, which i've
added XML support and a systray.
This is the actual look to have an idea:
2008/6/17 Andreas Pakulat <apaku at gmx.de>:
> On 17.06.08 18:57:51, Gustavo A. Díaz wrote:
> > Could you give me a little tip of how i could solve this by using
> > If not much to ask
> > I am reading about setEnviroment() but i dont understand exactly which is
> > the steps i should follow as starting point.
> Well, lets say you want to start "yourapp" with http_proxy variable set
> to http://somehost:8184. Then you'd just do
> p = QProcess()
> env = QProcess.systemEnvironment()
> env.append( "http_proxy=http://somehost:8184" )
> p.start( "yourapp" )
> This would start "yourapp" as if you'd have done the following in a
> export http_proxy=http://somehost:8184
> As I said before you can only change the environment of processes you
> start from your code, you can't influence environment settings of
> already running processes.
> If you still have problems, please be more precise whats not working and
> show some code.
> You will probably marry after a very brief courtship.
> PyQt mailing list PyQt at riverbankcomputing.com
Gustavo A. Díaz
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt