accessing function's local variables in another project
<pre><code>#project login.py
def login():
    username = input()
    password = input()
    #did some stuff!

#now a new project...    

#project access.py 
from login import login

if login.username=='ABC' and login.password=='XYZ': 
    #Cool...gained access!
</code></pre>

<p>My problem is I am not getting how to access these local variables...
Is there any other way except making username and password the args of login?</p>