appending two variables in os.path.isdir
<p>I am trying to append two variables BUILD_ROOT_DIR and W_ROOT and check if this directory exists ,if not raise a flag...running into following syntax error while appending..what is wrong here?</p>

<pre><code>if(os.path.isdir(BUILD_ROOT_DIR + W_ROOT))
    raise

    if(os.path.isdir(BUILD_ROOT_DIR + W_ROOT))
                                            ^
SyntaxError: invalid syntax
</code></pre>
