[Xcb] [PATCH] Insert, not append explicit xcbgen dir python path

Jamey Sharp jamey at minilop.net
Wed May 11 23:54:17 PDT 2011


Makes sense to me, so I pushed it. Thanks!

Jamey

On Wed, May 11, 2011 at 11:22:22PM -0700, James Jones wrote:
> If a the path to the xcb python generate libs is
> explicitly specified to c_client.py, insert it in
> the python path list just after the local dir entry,
> rather than appending it to the existing paths.
> This keeps a global/distro install of xcb from
> overriding a local build of the xcb proto files.
> 
> Signed-off-by: James Jones <jajones at nvidia.com>
> ---
>  src/c_client.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/c_client.py b/src/c_client.py
> index 3e77e9e..ef245c5 100644
> --- a/src/c_client.py
> +++ b/src/c_client.py
> @@ -2290,7 +2290,7 @@ except getopt.GetoptError as err:
>  
>  for (opt, arg) in opts:
>      if opt == '-p':
> -        sys.path.append(arg)
> +        sys.path.insert(1, arg)
>  
>  # Import the module class
>  try:
> -- 
> 1.7.1
> 
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110511/1548572d/attachment.pgp>


More information about the Xcb mailing list