On Wed, Oct 8, 2008 at 4:19 PM, Thomas Berg <merlin66b@gmail.com> 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?