Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-30 Thread Ronald Oussoren
On 30 Sep, 2009, at 17:31, Gabriel Rossetti wrote: Ronald Oussoren wrote: On 25 Sep, 2009, at 14:56, Gabriel Rossetti wrote: Hello everyone, I would like to create a Launchd plist entry to start a virtualenv and run a python project. I created my plist, but I'm not sure how to get it t

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-30 Thread Gabriel Rossetti
Ronald Oussoren wrote: On 25 Sep, 2009, at 14:56, Gabriel Rossetti wrote: Hello everyone, I would like to create a Launchd plist entry to start a virtualenv and run a python project. I created my plist, but I'm not sure how to get it to activate the virtualenv and run the program. Unless

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-29 Thread Ronald Oussoren
On 25 Sep, 2009, at 14:56, Gabriel Rossetti wrote: Hello everyone, I would like to create a Launchd plist entry to start a virtualenv and run a python project. I created my plist, but I'm not sure how to get it to activate the virtualenv and run the program. Unless you do something speci

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread Gabriel Rossetti
Orestis Markou wrote: On 25 Σεπ 2009, at 6:31 μ.μ., gabriel.rosse...@arimaz.com wrote: How about running the python exec directly from the virtual env : and again it seams to work (correct me again if I messed up somewhere). What is the advantage of using your method? None in particular,

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread Orestis Markou
On 25 Σεπ 2009, at 6:31 μ.μ., gabriel.rosse...@arimaz.com wrote: How about running the python exec directly from the virtual env : and again it seams to work (correct me again if I messed up somewhere). What is the advantage of using your method? None in particular, apart from the fact t

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread gabriel . rossetti
How about running the python exec directly from the virtual env : /Users/me/Desktop/virtual_python_root/bin/python Python 2.5.1 (r251:54863, Jun 17 2009, 20:37:34) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import w

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread Orestis Markou
No need for a wrapper script. In recent versions of virtualenv, you can do this: activate_this = 'path/to/virtualenv/bin/activate_this.py' if os.path.exists(activate_this): execfile(activate_this, dict(__file__=activate_this)) On 25 Σεπ 2009, at 3:56 μ.μ., Gabriel Rossetti wrot

Re: [Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread Aahz
On Fri, Sep 25, 2009, Gabriel Rossetti wrote: > > I would like to create a Launchd plist entry to start a virtualenv and > run a python project. I created my plist, but I'm not sure how to get it > to activate the virtualenv and run the program. I thought that maybe I > could create two emtr

[Pythonmac-SIG] Lanchd + virtualenv

2009-09-25 Thread Gabriel Rossetti
Hello everyone, I would like to create a Launchd plist entry to start a virtualenv and run a python project. I created my plist, but I'm not sure how to get it to activate the virtualenv and run the program. I thought that maybe I could create two emtries : http://www.apple