Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] Adding a path to sys.path
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-10-08 18:40:38

On Wed, Oct 8, 2008 at 4:19 PM, Thomas Berg <merlin66b_at_[hidden]> wrote:

> This is one way of doing it, works for me at least:
> python::str dir = "C:/somedir";
> python::object sys = python::import("sys");
> sys.attr("path").attr("insert")(0, dir);

This works great for me. Why didn't it work the way I was trying to do it?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at