Boost logo

Boost-Build :

Subject: Re: [Boost-build] [python] imports style
From: Juraj Ivančić (juraj.ivancic_at_[hidden])
Date: 2010-07-14 06:27:35


On 13.7.2010 21:21, Vladimir Prus wrote:

> Is there way to use 'feature.whatever' in the code,
> as opposed to 'b2.build.feature.whatever'?

Python supports module aliases. The following should work

import b2.build.feature as feature

I personally prefer this approach.

HTH


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