8 Oct
2008
8 Oct
'08
9:19 p.m.
On Wed, Oct 8, 2008 at 10:10 PM, Robert Dailey
I tried the following code below as an alternative and it still does not work:
using namespace boost::python;
object sys( import( "sys" ) ); dict sysdict( sys.attr( "__dict__" ) ); list syspath( sysdict["path"] ); syspath.append( "C:\mypath" );
I could really use some help!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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); Thomas