os.chdir in the generated bin script

5 views
Skip to first unread message

Sebastien Douche

unread,
Jun 13, 2013, 1:02:25 PM6/13/13
to buildout-d...@googlegroups.com
Hi,
I'm trying to update z3c.recipe.i18n to Buildout 2. On each bin
scripts, I have this:

#!/home/sdouche/vpython/py2.7.4-empty/bin/python

import sys
sys.path[0:0] = [
...
]
import os
sys.argv[0] = os.path.abspath(sys.argv[0])
os.chdir(/home/sdouche/src/z3c.recipe.i18n/src) <==

As you can see, the path is not quoted. Moreover, I don't need this
line. So, how change or remove this line?

--
Sebastien Douche <sdo...@gmail.com>
Twitter: @sdouche / G+: +sdouche

Sebastien Douche

unread,
Jun 14, 2013, 4:59:32 AM6/14/13
to buildout-d...@googlegroups.com
On Thu, Jun 13, 2013 at 7:02 PM, Sebastien Douche <sdo...@gmail.com> wrote:
> os.chdir(/home/sdouche/src/z3c.recipe.i18n/src) <==

The line is created by the recipe and not buildout. Sorry for the
noise. Thanks Jonathan.
Reply all
Reply to author
Forward
0 new messages