[Buildbot-devel] Fwd: Re: hideStepIf problem
Tom Prince
tom.prince at ualberta.net
Mon Mar 4 18:36:59 UTC 2013
Esther Baruk <esther.baruk at lexifi.com> writes:
> I still wonder why this module has to be imported since we explicitely
> test the condition "result == buildbot.status.results.SKIPPED"...
Because buildbot isn't in scope. Python doesn't im[prt top-level modules
by deafult. If you want that to work, you need to do
import buildbot
or
import buildbot.status.results
Doing
from buildbot.status.results import SKIPPED
doesn't introduce the name `buildbot` into scope, just `SKIPPED`.
Tom
More information about the devel
mailing list