Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to specify location of boost_python-vc90-mt-gd-1_38.dll?
From: David Roy (david.roy.perso_at_[hidden])
Date: 2009-07-10 04:19:35


That was my original idea but I didn't succeed in having it work with
changing sys.path.
Also from what I understand, sys.path specifies to python the list of
directories where modules have to be searched. In my case I want to indicate
the path to the boost_build dll, not to my python modules, maybe that's why
it doesn't work.

Here's what I tried:
import sys
sys.path.append("C:/Program
Files/boost/boost_1_38/bin.v2/libs/python/build/msvc-9.0/debug/threading-multi/")

If you have an idea on how I can make it work with sys.path, I'd be happy to
try it.

Thanks
-David
 

Vladimir Prus wrote:
>
> On Thursday 09 July 2009 David Roy wrote:
>
>>
>> Many thanks Volodya, that works!
>>
>> My purpose is to have this path automatically appended with no action of
>> the
>> user, and with portability on various OS. So I added the following lines
>> to
>> my script:
>>
>> import os
>> os.environ['path'] = os.environ['path'] + os.pathsep + "C:/Program
>> Files/boost/boost_1_38/bin.v2/libs/python/build/msvc-9.0/debug/threading-multi/"
>>
>> Would you consider it the right way to do that? One advantage seems to be
>> that PATH is "cleaned" from the appended directory at the end of
>> execution.
>
> I suspect that from inside Python, changing sys.path would be a better
> approach.
>
> - Volodya
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
>

-- 
View this message in context: http://www.nabble.com/How-to-specify-location-of-boost_python-vc90-mt-gd-1_38.dll--tp24388145p24423445.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk