[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys.path.insert
From: |
Marijn Schouten (hkBst) |
Subject: |
Re: sys.path.insert |
Date: |
Thu, 25 Jan 2007 09:12:06 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20061225) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marijn Schouten wrote:
> Hi list,
>
> this is a little snippet from the gentoo build script for lilypond
>
> # lilypond python scripts *prepend* /usr/share/lilypond/${PV}/python to
> # sys.path, causing python to attempt to rebuild the pyc, which
> generates
> # sandbox errors (and is wrong anyway). Change this policy to use
> # sys.path.append so that PYTHONPATH, set by the Makefiles, takes
> # precendence.
> grep -rlZ sys.path.insert --include \*.py ${S} | xargs -0r sed -i
> 's/sys.path.insert \?(0, /sys.path.append (/'
>
> any thoughts?
>
> Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFuGZWp/VmCx0OL2wRAr8QAJwMk+M2VFAEIurijWjve/stpfUWDACgnUvZ
ob554MJfIamEh4zZoKoWTmU=
=ZjKX
-----END PGP SIGNATURE-----
- Re: sys.path.insert,
Marijn Schouten (hkBst) <=