python function arguments <p>I have a Python function that inputs a string and should output a path along with doing some other operations within the function. So the function looks like this, where testcase is the input and path should be returned:</p> <pre><code>def generate_testcase(testcase,path) path=os.path.join(os.getcwd(), testcase) return path </code></pre> <p>The function is a part of a package "regress" and is being called/used as: </p> <pre><code>import regress testcase='xyz' regress.main.generate_testcase(testcase,path) print path </code></pre> <p>Now I am getting an error that I have not defined path </p> <p><code>NameError: name 'path' is not defined</code></p>