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!